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 foreign key in sql with example?

517


What is the difference between inner join and outer join?

537


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

499


Is pl sql a programming language?

553


What is primary key and foreign key?

536






What is the difference between a primary key and a clustered index?

526


Where is all the data on the internet stored?

560


How is sql used in oracle?

585


Enlist some predefined exceptions?

588


What is the purpose of using pl/sql?

668


When to use inner join and left join?

530


How many types of privileges are available in sql?

739


What is the command used to fetch the first 5 characters of a string?

714


Is it possible to link two groups inside a cross products after the cross products group has been created?

599


What is faster join or subquery?

514