auto datetime update on UPDATE?

Поиск
Список
Период
Сортировка
От Tulassay Zsolt
Тема auto datetime update on UPDATE?
Дата
Msg-id Pine.LNX.4.10.9910311633040.26318-100000@tek.bke.hu
обсуждение исходный текст
Список pgsql-sql
Hi,

i have set up a table, where two fields (creation_dt and modification_dt)
always get the actual date/time by default when doing an INSERT.
my question is, how is it possible to let the field modification_dt
change when doing an UPDATE?
Is there a way to solve it in SQL?

(actually i found something in the mailing list archive,
where the sender solves the problem by creating a trigger
and a C function, but i would really apppreciate if there was
a solution in SQL only.
anyway, that solution is at
http://www.PostgreSQL.ORG/mhonarc/pgsql-sql/1998-06/msg00056.html )

Zsolt Tulassay

ps i'm not on the mailing list so please send a copy to my address  as well. thanks




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] Decimal precsion?
Следующее
От: Tulassay Zsolt
Дата:
Сообщение: auto datetime update on UPDATE?