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

Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)

535


Why do we use procedures in pl sql?

516


What are sql built in functions?

508


Is sql database free?

525


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

543






Why cross join is used?

626


What are some predefined exceptions in pl/sql?

548


How does sql store data?

481


What are types of indexes in sql?

537


What is the use of index in hive?

548


What are different types of triggers?

553


Mention what problem one might face while writing log information to a data-base table in pl/sql?

674


What is the use of nvl function?

617


explain the difference between delete , truncate and drop commands? : Sql dba

546


What is compute?

555