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: Help with seq.nextval in Schema Manager

Re: Help with seq.nextval in Schema Manager

From: Alton Ayers <altona_at_ditw.com>
Date: 1997/07/10
Message-ID: <33C57BE7.F51@ditw.com>#1/1

Bruce Hair wrote:
>
> Help for this beginner Schema Manager user is appreciated.
> I am having a problem with "seq.nextval" in a trigger for a table. The
> trigger body looks like this;
>
> BEGIN
> :new.SEQN := seq.nextval;
> :new.CONTACT_NAME := user;
> :new.CONTACT_DATE := sysdate;
> END;
>
> I am using Access linked tables and I recieve a '4098 Trigger is invalid
> and failed re-validation' error message when inserting a new row.
> Any suggestions?
> Thanks

Rather than :new.SEQN := seq.nextval;, use the following:

SELECT seq.nextval INTO :new.SEQN FROM dual; Received on Thu Jul 10 1997 - 00:00:00 CDT

Original text of this message

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