Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: retreiving CurrVal in a select statement.
Hi !
You must use this statement:
select sequencename.CURRVAL from dual;
Best regards
Manfred Traumueller
IKEA
IBS Wr.Neudorf
AUSTRIA
Kal Khatib <kal_at_gene.COM> wrote in article <34835F93.EE2D03B0_at_gene.com>...
> How do you get the current value of a sequence in a select statement;
> I try;
> select CurrVal from some_sequence
> I get
> ORA-02201: sequence not allowed here
>
> is it possible using the above method? Or is there another way? I'm
> trying to assign transactions a unique sequence, then pass the assigned
> sequence to the customer for their reference in the same sesison.
>
> thanks for any help.
> Kal.
>
>
Received on Tue Dec 02 1997 - 00:00:00 CST
![]() |
![]() |