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: How can I use NEXTVAL in stored procedure??

Re: How can I use NEXTVAL in stored procedure??

From: victor <victor_at_PERCOMBANK.KIEV.UA>
Date: 8 Dec 1998 11:24:11 GMT
Message-ID: <01be229d$60472e00$6b14abcc@victor>

Dan Gibbons <Daniel.Gibbons_at_Sebank.co.uk> wrote in article <74ivo0$pg31_at_pound.sebank.se>...
> Hi,
>
>
> pLOG_ID := GLMT_LOG_SEQ.NEXTVAL;
>
> Does anyone know how I can create a stored procedure that will assign
> NEXTVAL to a tables ID field and return the ID that it used?
>
> Thanks in advance.

select GLMT_LOG_SEQ.NEXTVAL
into pLOG_ID
from dual Received on Tue Dec 08 1998 - 05:24:11 CST

Original text of this message

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