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: HELP: Attempting to use Before Triggers and Sequences to auto-generate Primary Keys

Re: HELP: Attempting to use Before Triggers and Sequences to auto-generate Primary Keys

From: Tim Romano <tim_at_ot.com>
Date: 1997/06/14
Message-ID: <01bc78ec$218328b0$69f0eac7@haven>#1/1

Lee:

After declaring iCounter, try this:

SELECT test_seq.NEXTVAL into iCounter FROM dual;  :new.ID := iCounter;

instead of what you have:

> :new.Id := Test_SEQ.NEXTVAL;

Also, qualify the sequence name with its owner if appropriate.

Tim Romano
Swarthmore PA Received on Sat Jun 14 1997 - 00:00:00 CDT

Original text of this message

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