RE: void UPDATE function?

Поиск
Список
Период
Сортировка
От Francis Solomon
Тема RE: void UPDATE function?
Дата
Msg-id NEBBIFFPELJMCJAODNPKMEFACEAA.francis@stellison.co.uk
обсуждение исходный текст
Ответ на void UPDATE function?  (Adam Haberlach <adam@newsnipple.com>)
Список pgsql-general
Hi Adam,

Would this work?

UPDATE bugs SET somefield=somefield WHERE pkey='3';

i.e. set a field to itself. I don't know whether or not this would be
optimised away - but it could be worth a try.

Hope this helps.

Francis Solomon

>
>     What is a good way to trigger an UPDATE of a row
> without actually
> changing anything?  I have a trigger that will update the timestamp
> of a record, and in this case, want to trigger it because I am
> adding a related row in another table.
>
> UPDATE bugs WHERE pkey='3'
>
> Doesn't seem to work.


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

Предыдущее
От: Adam Haberlach
Дата:
Сообщение: void UPDATE function?
Следующее
От: Anand Raman
Дата:
Сообщение: replacing a word..