From: Richard Huxton <dev@archonet.com>
To: Pradeepkumar, Pyatalo (IE10) <Pradeepkumar.Pyatalo@honeywell.com>
Cc: Tomasz Myrta <jasiek@klaster.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Triggers - need help !!!
Date: Wed, 07 Jul 2004 12:03:45 +0100
Message-ID: <40EBD891.3050205@archonet.com> (raw)
In-Reply-To: <77ED2BF75D59D1439F90412CC5B109740E8A2E38@ie10-sahara.hiso.honeywell.com>
References: <77ED2BF75D59D1439F90412CC5B109740E8A2E38@ie10-sahara.hiso.honeywell.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, Pradeepkumar.Pyatalo@honeywell.com, jasiek@klaster.net
Subject: Re: Triggers - need help !!!
In-Reply-To: <40EBD891.3050205@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox