How to access the current value and next value from a
sequence?
Answer Posted / saty
select sequencename.currval from dual
select sequencename.nextval from dual
if we will give only table name thr will be error
Thanks & regards
satya
+919916174212
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
what is the difference between a local and a global temporary table? : Sql dba
Why is there a need for sqlcode and sqlerrm variables?
What is serial sql?
can a stored procedure call itself or recursive stored procedure? : Sql dba
How are sql commands classified?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
What is the difference between left and left outer join?
Explain unique key in sql.
how many tables will create when we create table, what are they? : Sql dba
When to use inner join and left join?
What are procedures used for?
Does sql full backup truncate logs?
What type of database is sql?
how to create a new table by selecting rows from another table in mysql? : Sql dba
What are all the different normalization?