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
Can we insert data into materialized view?
Why do we need databases?
Which command is used to call a stored procedure?
What are the advantages of sql?
Can we connect to postgresql using sql developer?
What is the difference between alter trigger and drop trigger statements?
What is a left join?
Define union, minus, union all, intersect ?
How can I make sql query run faster?
Explain the order of sql statement execution?
what is the stuff function and how does it differ from the replace function? : Sql dba
Can we use insert statement in function?
What is form and report?
what is single byte over head in oracle..?
what are tables and fields? : Sql dba