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 create an index in word?

966


What is t sql in sql server?

1001


How would you convert date into julian date format?

947


How to revise and re-run the last sql command?

1098


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

942


What is sql key?

918


What is union, minus and interact commands?

1213


How many sql databases can you have on one server?

1016


What is package in pl sql?

961


What is the difference between drop and truncate commands?

997


How do I create a sql script?

1050


How do you update f as m and m as f from the below table testtable?

1789


What is a recursive join sql?

1025


How many types of keys are there in sql?

986


What is sqlite used for?

933