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 you write an inner join query?

940


what are the differences between binary and varbinary? : Sql dba

1033


What are the string functions in sql?

964


how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba

1179


Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?

3563


What is crud diagram?

935


What is java sql connection?

1036


What is cold data?

942


What does (*) mean in sql?

942


what is the difference between a web-garden and a web-farm? : Sql dba

1072


What are the most important ddl statements in sql?

1097


What are sql built in functions?

928


Is pl sql useful?

977


How do you run a query?

987


Name three sql operations that perform a sort.

994