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

From Mischa Sandberg
Subject Re: Triggers - need help !!!
Date
Msg-id 3eSGc.8923$eO.7106@edtnps89
Whole thread Raw
In response to Re: Triggers - need help !!!  ("Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar.Pyatalo@honeywell.com>)
List pgsql-sql
"Richard Huxton" <dev@archonet.com> wrote in message
news:40EBD891.3050205@archonet.com...
> Pradeepkumar, Pyatalo (IE10) wrote:
> > IF UPDATE(CreateTime) THEN
> > ....
> > ....
> > END IF;
> >
> > Is this syntax correct.
>
> No, and I don't recall seeing anything like it in the manuals.

... and it's always an excellent time to read them ...

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

... being mindful of the case where CreateTime might be NULL ...




pgsql-sql by date:

Previous
From: "B.W.H. van Beest"
Date:
Subject: How to filter on timestamps?
Next
From: Gerwin Philippo
Date:
Subject: Re: append columns that are null