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

How do I remove sql developer from windows 10?

1109


How do you optimize a stored procedure query?

998


What is the purpose of normalization?

1040


Can we use distinct and group by together?

1057


Can we use join in subquery?

1095


Why do we use triggers?

967


What are different types of tables in sql?

998


How can you select unique records from a table?

1077


What is nvl?

1065


How many sql core licenses do I need?

944


What is the reports view in oracle sql developer?

991


What is the difference between unique and primary key constraints?

1071


What is a parameter query?

1083


What is compute?

1088


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1345