Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How get the current value from a sequence?
Hi all
DA Morgan wrote in response to
> > whats wrong with select seq_name.nextval fom dual?
>One big thing ... that being you just took another number off the
>top of the sequence.
I believe that executing the command
select seq_name.nextval from dual; does not increment the sequence (the first time), but defines the sequence for the session.
Of course if you executed the above statement AGAIN, then it would increment.
Cheers
Craig.