Re: date update check

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: date update check
Дата
Msg-id 20050504193235.GA7741@wolff.to
обсуждение исходный текст
Ответ на date update check  ("sZEJTAN" <szejtan@poczta.onet.pl>)
Список pgsql-novice
On Wed, May 04, 2005 at 20:57:26 +0200,
  sZEJTAN <szejtan@poczta.onet.pl> wrote:
> Hullo
>
> Is it possible to create trigger on date update? For example automatically
> alter sbd's age every day;-)

The normal solution to update things when the day changes would be to set up a
cron job to do this.

However, for ages you should be storing a birthdate and not an age.

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

Предыдущее
От: "sZEJTAN"
Дата:
Сообщение: date update check
Следующее
От: John DeSoi
Дата:
Сообщение: Re: Output of PL/PGSQL?