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
What is package in pl sql with an examples?
Is sql sequential or random?
What are the sql aggregate functions?
How many clustered indexes can be created on a table?
Explain what is an index?
What are the indexing methods?
how to select first 5 records from a table? : Sql dba
What are the parts of a basic sql query?
How is indexing done in search engines?
define sql update statement ? : Sql dba
What is group function in sql?
What are the different types of dbms?
what is a trigger in mysql? Define different types of trigger. : Sql dba
What is asqueryable?
what is blob? : Sql dba