simple auto-updating timestamp ?

Поиск
Список
Период
Сортировка
От Andreas
Тема simple auto-updating timestamp ?
Дата
Msg-id 3FEF5D97.8030706@gmx.net
обсуждение исходный текст
Ответы Re: simple auto-updating timestamp ?  ("D. Dante Lorenso" <dante@lorenso.com>)
Список pgsql-general
Hello list,

I suspect, this is a common issue for newbies.
Is there a simple way to have an auto-updating timestamp like mysql has ?

create table something (
   id                int4,
   sometext     text,
   update_ts    timestamp(0),
   primary key (id)
);

Everytime this table gets updated the timestamp should be automatically
refreshed to NOW() ?
I hope someone could point me to an example.


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

Предыдущее
От: "Keith C. Perry"
Дата:
Сообщение: Re: Is my MySQL Gaining ?
Следующее
От: "Keith C. Perry"
Дата:
Сообщение: Re: Is my MySQL Gaining ?