Yes, <sequenceName>.CURRVAL

Note that this provides the current value for the session: i.e. the value 
that was last returned by NEXTVAL within that session.  Therefore:

1. NEXTVAL must have been called at least once before in the session to 
define CURRVAL.
2. Even if NEXTVAL is called for the sequence in another session, CURRVAL 
in the original session will relate to the previous call to NEXTVAL in the 
original session - it does not increment.


- Bill.


At 04:50 26/11/01 -0800, you wrote:
>Hi
>
>when writing a program PROC <sequenceName>.NEXTVAL
>points to the next value of a sequence, is there
>anything like <sequenceName>.SOMETHING that returns
>current value of sequence.
>
>Thanks
>
>E.
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
>http://geocities.yahoo.com/ps/info1
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: ehsan sinavalda
>   INET: [EMAIL PROTECTED]
>
>Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
>San Diego, California        -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from).  You may
>also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Bill Buchan
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to