Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Jason Harris — — source: Informix-list mailing list archive (1991-1998)
Jon,
Try this on the insert trigger:
for each row (
execute procedure get_time() into table.column)
Jason
On Fri, 6 Feb 1998 13:54:45 -0000, "Jon Brown" <jbrown@deverill.co.uk>
wrote:
>Can anyone offer advice?
>
>We are developing a large client server system with an Informix back end.
>Each of the tables in the database has a lastupdated and bywhom field which
>we had invisioned setting by use of an 'after Insert/Update' Trigger.
> (i.e.)
>CREATE TRIGGER post_insert>INSERT ON tablename
>REFERENCING NEW AS NEW_INS
>FOR EACH ROW ( NEW_INS.lastupdated = CURRENT;
> NEW_INS.bywhom = USER);
>
>
>It would appear that it is impossible to update an informix table with a
>trigger that is on the same table
>Is this the case or are we just being stupid?
>
>Thanks
>
>Jon
>
>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.