Re: timestamps

Поиск
Список
Период
Сортировка
От Tom Allison
Тема Re: timestamps
Дата
Msg-id 40B3F35F.5060006@tacocat.net
обсуждение исходный текст
Ответ на Re: timestamps  (Doug McNaught <doug@mcnaught.org>)
Список pgsql-general
Doug McNaught wrote:
> Tom Allison <tallison@tacocat.net> writes:
>
>
>>How would I specify a field that's to be updated to current_time
>>everytime the row is created/altered?
>
>
> Create a trigger.  There are some good examples in the PL/pgSQL docs.
>
>
>>Is there some way to put this 'update' property into the table instead
>>of running some query to do it?
>
>
> Triggers are the way to go in Postgres.
>
> -Doug
>

Thanks for the pointer.  That should be enough.


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

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: timestamps
Следующее
От: Wei Shi
Дата:
Сообщение: Re: About table schema