How to access the current value and next value from a
sequence?

Answer Posted / chandrasekar ramasamy

select sequencename.currval from tablename

select sequencename.nextval from tablename

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is log shipping? : Sql dba

822


What is a ddl command?

722


What is the difference between the conventional and direct path loader? : aql loader

867


how many groups of data types? : Sql dba

728


How do I start sql profiler?

746






What are % type and % rowtype?

778


When is a declare statement required?

867


What jobs use sql?

721


What are the usages of sql?

752


Why is sql important?

763


How can I speed up sql query?

707


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

732


what are rollup and cube in t-sql? : Transact sql

819


Can a select statement fire a trigger?

888


How do I find duplicates in two columns?

745