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

What is triggering circuit?

1058


Does inner join remove duplicates?

932


Which sql most popular?

983


How do you determine the current isolation level? : Transact sql

1147


What is a primary key? Explain

969


Is and as keyword in pl sql?

952


Explain what is dbms?

1049


How to take user input in pl sql?

1155


What is sql dialect?

1107


What is rollback?

1106


How can I change database name in sql?

1068


what is user defined functions? : Sql dba

1022


what are dynamic queries in t-sql? : Transact sql

1012


What is union and union all keyword in sql and what are their differences?

1098


Can a primary key be a foreign key?

1015