top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Oracle: sequence, currval and nextval ?

0 votes
381 views

Consider a sequence whose currval is 1 and gets incremented by 1. by using the nextval reference we get the next number 2. Suppose at this point we issue an rollback and again issue a nextval. What will the output be ?

posted Jan 5, 2015 by Archana

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

output will be 3 .

answer Jan 6, 2015 by Arun Gowda
Similar Questions
0 votes

Consider a sequence whose currval is 1 and gets incremented by 1 by using the nextval reference we get the next number 2. Suppose at this point we issue a rollback and again issue a nextval. What will the output be?

...