Re: newbie: update timestamp trigger?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: newbie: update timestamp trigger?
Дата
Msg-id dcc563d10710231243q1d69e8cau51bcf97d5f478025@mail.gmail.com
обсуждение исходный текст
Ответ на newbie: update timestamp trigger?  (ahnf <interz12@yahoo.com>)
Список pgsql-general
On 10/23/07, ahnf <interz12@yahoo.com> wrote:
> Whenever a row is updated in a table with a timestamp column. How do I write a trigger to set that timestamp column
tonow() or the current timestamp? 

You should be able to take a virtual chainsaw to the example on this
page and do it:

http://www.postgresql.org/docs/8.2/static/plpgsql-trigger.html

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

Предыдущее
От: "Rodrigo De León"
Дата:
Сообщение: Re: newbie: update timestamp trigger?
Следующее
От: Kevin Hunter
Дата:
Сообщение: data statistic functions