Re: Triggers - need help !!! - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Triggers - need help !!!
Date
Msg-id 40EBD891.3050205@archonet.com
Whole thread Raw
In response to Re: Triggers - need help !!!  ("Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar.Pyatalo@honeywell.com>)
List 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 by date:

Previous
From: "Pradeepkumar, Pyatalo (IE10)"
Date:
Subject: Re: Triggers - need help !!!
Next
From: "SZŰCS Gábor"
Date:
Subject: Constraint->function dependency and dump in 7.3