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 / shai

select *
from user_sequences;

The last_number column will display the number available
next.
if no_cache is used in sequence definition then you can
trust on last_number column from user_sequence.
But if cache is used then below will take place:

If Cache is 20 then last_number will display any number
within range of sequence currval+20

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which one is faster ienumerable or iqueryable?

986


Can a table contain multiple primary key’s?

1154


What are reports usually used for?

1081


What is dml statement?

999


How can a pl sql block be executed?

1000


What is the use of non clustered index?

1042


Is a view faster than a stored procedure?

1007


What is sqlservr exe?

1028


Why do we use subquery?

1073


how to escape special characters in sql statements? : Sql dba

1080


How do I tune a sql query?

1035


What is an inconsistent dependency?

1083


What is latest version of sql?

1100


What is column?

1031


What is secondary key?

984