Re: newbie: update timestamp trigger?

Поиск
Список
Период
Сортировка
Искать
От
Rodrigo De León
Тема
Re: newbie: update timestamp trigger?
Дата
Msg-id
a55915760710231241s619d66e1iad56f0c2a1117e0b@mail.gmail.com
Ответ на
Список
Дерево обсуждения
newbie: update timestamp trigger? ahnf <interz12@yahoo.com>
Re: newbie: update timestamp trigger? "Rodrigo De León" <rdeleonp@gmail.com>
Re: newbie: update timestamp trigger? "Scott Marlowe" <scott.marlowe@gmail.com>
On 10/23/07, ahnf  wrote:
> Whenever a row is updated in a table with a timestamp column. How do I write a trigger to set that timestamp column to now() or the current timestamp?

Straight from the horse's mouth:
http://www.postgresql.org/docs/8.2/static/plpgsql-trigger.html#PLPGSQL-TRIGGER-EXAMPLE
В списке pgsql-general по дате отправления
От: ahnf
Дата:
От: Scott Marlowe
Дата:
FAQ