Whats the purpose of using Nextval while creating the
sequence.
Answers were Sorted based on User's Feedback
Answer / tharanath.n
NextVal is pseudo column, which gives you the unique number
in the sequence.
nextval increment the sequence and return new value.
currval can only be accessed in given session after at least
one nextval has been issued.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / 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 |
What is the difference between conversions and interfaces? : oracle accounts receivable
What is an Oracle database Partial Backup?
What type of index should you use on a fact table?
what are important reports in HRMS,GL,AP,AR in oracle apps?
3 Answers IBM, Pathway Technologies, Satyam, Techtimer, Wipro,
How do you use trigger to create mutating state of table
i am pursuing mca and i want to do oracle apps technical in hydrabad, plz guide me tne best institue in hydrabad those have excellent knowledge in oracle apps.
how to get the values if source table & target table having duplicate values that matches the lookup condition ?(i want all duplicate match)
How would you determine what sessions are connected and what resources they are waiting for?
Are These Dff's Flexible?
difference of using cursor for loop and open,fetch,close.which one is better
Explain the use of setting GLOBAL_NAMES equal to TRUE.
What is Tax Categories?