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 is difference between procedure and trigger?

673


What does trigger mean in slang?

733


What is mutating sql table?

826


What is scalar function?

775


Are stored procedures compiled?

678






What is a behavioral trigger?

695


What information is needed to connect sql*plus an oracle server?

768


Which join is like an inner join?

720


Why do you partition data?

726


What is the purpose of normalization?

755


How many times can we commit in a loop?

740


Does truncate require commit?

715


How to write html code in pl sql?

804


What is the best free sql database?

771


Can a key be both primary and foreign?

718