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

Answer Posted / tulsi

select currval.sequence_name from table_name

select nextval.sequence_name from table_name

Is This Answer Correct ?    0 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the hierarchical profiler does?

581


how can we destroy the cookie? : Sql dba

569


What is meant by <> in sql?

515


How long will it take to learn pl sql?

532


what are the performance and scalability characteristics of mysql? : Sql dba

542






How many types of cursors are available in pl/sql?

594


what is a materialized view? : Sql dba

582


what is a database? : Sql dba

612


Which data type is a composite type?

543


How many scalar data types are supported in pl/sql?

534


What are the properties of a transaction?

584


Which sql statement is used to delete data from a database?

480


What is data manipulation language?

708


How many parts of a pl sql block are optional?

529


What is the left table in sql?

525