Whats the purpose of using Nextval while creating the
sequence.
Answer Posted / sreekanth
To get the next value of a sequence, we use nextval.
NextVal is pseudo column, which gives you the AVAILABLE
number in the sequence.
Remember the nextval value also depends on the cache you
have given, while creating the sequence.
If you want current value of a sequence you can use CurVal.
In a session you cannot use current value without getting
next value.
In 11g the you can use the nextval without using the query.
ie
select seq_name.nextval into ln_seqnextval from dual;
can be replaced by
ln_seqnextval := seq_name.nextval;
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
HOW TO SAVE UNIVERSES AND DOCUMENTS IN THE REPOSITORY?
3. Steps in UAT?
how to replace not in with not exist?
Explain how to close periods in ar. : oracle accounts receivable
WHAT ARE TEMPLATES?EXPLAIN WHAT YOU HAVE CREATED?
default triggers available for reports
What are the advantages of operating a database in ARCHIVELOG mode over operating it in NO ARCHIVELOG mode in Oracle?
TILL WHAT LEVEL OF SECURITY BO SUPPORTS?
How would you determine who has added a row to a table?
types of receipts and detail desription about recipts and tables effected by receipts?
What is auto invoicing? Explain : oracle accounts receivable
Are These Dff's Flexible?
what is semphore explian it?
Explain how to account for bank charges deducted from amount received against an invoice. : oracle accounts receivable
Explain the process of recievables in oracle financials. : oracle accounts receivable