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
Explain what is a database?
What is multiple columns?
define sql update statement ? : Sql dba
List and explain the different types of join clauses supported in ansi-standard sql?
what are null values? : Sql dba
How do you copy a table in sql?
How many times can we commit in a loop?
What are the uses of sysdate and user keywords?
What is the difference between null value, zero, and blank space?
Is left join same as join?
List different type of expressions with the example.
how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba
Which are the different types of indexes in sql?
Why truncate is faster than delete?
How to start the command-line sql*plus?