Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: saving username and sysdate on insert/update

Re: saving username and sysdate on insert/update

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: Sat, 17 Apr 1999 22:16:44 +0200
Message-ID: <7faq76$6ci$1@weber.a2000.nl>


Sybrand Bakker wrote
> if inserting then
> new.addte := sysdate;
> new.addusr := user;
> else
> new.upddte := sysdate;
> new.updusr := user;
> end if;

I am sure Sybrand knows, but just to be sure that Johnny gets there as well:

you should use :new instead of new.

Arjan. Received on Sat Apr 17 1999 - 15:16:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US