How to access the current value and next value from a
sequence?
Answer Posted / shai
select *
from user_sequences;
The last_number column will display the number available
next.
if no_cache is used in sequence definition then you can
trust on last_number column from user_sequence.
But if cache is used then below will take place:
If Cache is 20 then last_number will display any number
within range of sequence currval+20
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how do you tune the slow running queries in oracle db , explain the methodology
What packages(if any) has oracle provided for use by developers?
Advantages and disadvantages of stored procedure?
How you improve the performance of sql*loader? : aql loader
What is input buffer in sql*plus?
How does stored procedure reduce network traffic?
what are dynamic queries in t-sql? : Transact sql
What is the difference between function and procedure in pl/sql?
Can pl sql procedure have a return statement?
Can we use the cursor's to create the collection in PL/SQL?
Can delete statement be rollbacked?
what are all the different normalizations? : Sql dba
Is vs as in pl sql?
What are the string functions in sql?
What schema means?