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: Howto put a sequence in a variable.

Re: Howto put a sequence in a variable.

From: Roger Stapley <rstapley_at_uk.oracle.com>
Date: Wed, 17 Nov 1999 17:13:35 +0000
Message-ID: <3832E23F.6BF13B32@uk.oracle.com>


select sequence.nextval
into l_id
from dual;

Dirk Joosen wrote:
>
> Hello
>
> Is it possible to get the value of a sequence and to write these to
> an variable. I could be something like
> l_id NUMBER;
> l_id : = SEQUENCE.NEXTVAL;
>
> This is not allowd but is there a possibility to make this work???
> Regards and thanks Dirk


Received on Wed Nov 17 1999 - 11:13:35 CST

Original text of this message

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