Re: declare column update expression

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: declare column update expression
Дата
Msg-id 162867790809110101x162c5606k3ae3ec6f3ec1612d@mail.gmail.com
обсуждение исходный текст
Ответ на declare column update expression  ("Chris Velevitch" <chris.velevitch@gmail.com>)
Ответы Re: declare column update expression  ("Chris Velevitch" <chris.velevitch@gmail.com>)
Список pgsql-general
Hello,

2008/9/11 Chris Velevitch <chris.velevitch@gmail.com>:
> In 7.4, how do I declare that a column in a table is to be
> automatically set to the value of some fixed expression whenever a row
> is updated?
>
> Eg column last_modified is always set to current_timestamp
>

you should to use trigger

regards
Pavel Stehule

>
>
> Chris
> --
> Chris Velevitch
> Manager - Adobe Platform Users Group, Sydney
> m: 0415 469 095
> www.apugs.org.au
>
> Adobe Platform Users Group, Sydney
> September meeting: It's Going To Be Brilliant
> Date: Mon 29th September 6pm for 6:30 start
> Details and RSVP on http://apugs2008september.eventbrite.com
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

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

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: No error when column doesn't exist
Следующее
От: "Artis Caune"
Дата:
Сообщение: Re: plpgsql return select from multiple tables