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 is a PL/SQL code compiled?
How do I view a view in sql?
what is bcp? When is it used?
What is nosql example?
How do you use collections in procedure to return the resultset?
What are operators available in sql?
How to create your own reports in sql developer?
what is a foreign key ? : Sql dba
What is case function?
which tcp/ip port does sql server run on? : Sql dba
How long will it take to learn pl sql?
What found sql?
What are sql*plus environment variables?
Why plvtab is considered as the easiest way to access the pl/sql table?
What is the difference between the conventional and direct path loads? : aql loader