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 a view? : Sql dba
Explain what is sql*plus?
What are the two characteristics of a primary key?
How can the performance of a trigger be improved?
How does join work in sql?
What is the difference between left and left outer join?
Can we use ddl statements in stored procedure?
Can we use rowid as primary key?
how many ways to get the current time? : Sql dba
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
How many parts of a pl sql block are optional?
Can you skip header records while loading? : aql loader
What is pl sql record in oracle?
Which command is used to call a stored procedure?
What is data abstraction in sql?