Re: Triggers - need help !!!

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Triggers - need help !!!
Дата
Msg-id 40EBD891.3050205@archonet.com
обсуждение исходный текст
Ответ на Re: Triggers - need help !!!  ("Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar.Pyatalo@honeywell.com>)
Список pgsql-sql
Pradeepkumar, Pyatalo (IE10) wrote:
> Thanks a lot for ur help.
>  In the trigger, I am checking if a field is updated or not. The syntax I
> use is 
> 
> IF UPDATE(CreateTime) THEN
>     ....
>     ....
> END IF;
> 
> Is this syntax correct.

No, and I don't recall seeing anything like it in the manuals.

IF OLD.CreateTime <> NEW.CreateTime THEN ...


--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: "Pradeepkumar, Pyatalo (IE10)"
Дата:
Сообщение: Re: Triggers - need help !!!
Следующее
От: "SZŰCS Gábor"
Дата:
Сообщение: Constraint->function dependency and dump in 7.3