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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Seqence Number in Triggers Please Help

Re: Seqence Number in Triggers Please Help

From: <edd_at_softsystem.com.pl>
Date: 1998/03/10
Message-ID: <6e3kk6$j18$1@nnrp1.dejanews.com>#1/1

>CREATE OR REPLACE TRIGGER TR_ANDY_TEST
> BEFORE INSERT ON TB_ANDY_TEST
>  FOR EACH ROW
>   BEGIN
>     :NEW.DT= DT_SEQ.NEXTVAL
>   END;
>/

Try another code, like:
...
BEGIN
    select DT_SEQ.NEXTVAL into :NEW.DT from DUAL; END; Sincerely yours

    Edward

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading Received on Tue Mar 10 1998 - 00:00:00 CST

Original text of this message

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