Re: on update set default

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: on update set default
Дата
Msg-id m31yi475kt.fsf@belphigor.mcnaught.org
обсуждение исходный текст
Ответ на on update set default  ("Ben-Nes Michael" <miki@canaan.co.il>)
Ответы Re: on update set default  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
"Ben-Nes Michael" <miki@canaan.co.il> writes:

> Hi All
>
> Im want that on each insert, update to a table the column:
> changed_on TIMESTAMP DEFAULT now()
> will be set to now();
>
> any one can hint me ?
> I tried few rulles and triggers for hours with no luck :(

An AFTER trigger to do this should be pretty easy.  Why don't you post
what you've tried and we'll see where you went wrong?

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

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

Предыдущее
От: "Ben-Nes Michael"
Дата:
Сообщение: on update set default
Следующее
От: Francisco Reyes
Дата:
Сообщение: Questions about the upcoming 7.2?