Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / p.rajasekar

We cannot directly get Current value from the sequence.So
first we need to get the next value, then we can get the
current value in the same scope


select sequencename.nextval from tablename

select sequencename.currval from tablename

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can delete statement be rollbacked?

1031


When is the update_statistics command used?

1179


What does bitemporal mean?

1112


What is the need of merge statement?

1092


How do I find duplicates in two columns?

1261


Why do we need pl sql?

1033


how to enter numeric values as hex numbers? : Sql dba

1098


What is the main reason behind using an index?

1057


What is $$ in sql?

1042


what are the advantages and disadvantages of views in a database? : Sql dba

1072


how are mysql timestamps seen to a user? : Sql dba

1190


What is a scalar value in sql?

1122


What are inbuilt functions in sql?

1105


What is a sql instance vs database?

1170


How do I save the results of sql query in a file?

1010