Is it possible to access the current value in a session before accessing next value

Showing Answers 1 - 4 of 4 Answers

Jagdish

  • Aug 22nd, 2005
 

Yes, but the curval will get teh same value whcih is already return. 

  Was this answer useful?  Yes

shlomcar

  • Sep 1st, 2005
 

correct answer:  
NEXTAVAL must be issued for that sequence before CURRVAL contaons a value 
 
from Oracle Server SQL references 8

  Was this answer useful?  Yes

Shasi

  • Jan 7th, 2006
 

You can find the last number used in the session for your sequence from the below mentioned query

select last_number from user_sequences where sequence_name = <your_sequence_name>

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions