Re: "Pretend" update

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: "Pretend" update
Дата
Msg-id 524B0515.5010106@gmail.com
обсуждение исходный текст
Ответ на "Pretend" update  (Perry Smith <pedzsan@gmail.com>)
Ответы Re: "Pretend" update  (Perry Smith <pedzsan@gmail.com>)
Список pgsql-general
On 10/01/2013 10:16 AM, Perry Smith wrote:
> With "make" I can do "make -n" and it just tells me what it would do but doesn't actually do anything.
>
> How could I do that with SQL?
>
> I want to write a really complicated (for me) SQL UPDATE statement.  I'm sure I won't get it right the first time.
Isthere an easy way to not really make the changes? 
>
> I've thought about starting a transaction and then roll it back.  That would undo the changes.  But I won't be able
totell what the changes were. 

Assuming you are not doing this in a function, you can. Do UPDATE, then
SELECT to see your changes or not and then ROLLBACK.

>
> Thank you for your time,
> Perry
>


--
Adrian Klaver
adrian.klaver@gmail.com


В списке pgsql-general по дате отправления:

Предыдущее
От: Perry Smith
Дата:
Сообщение: "Pretend" update
Следующее
От: Perry Smith
Дата:
Сообщение: Re: "Pretend" update