Whats the purpose of using Nextval while creating the
sequence.

Answers were Sorted based on User's Feedback



Whats the purpose of using Nextval while creating the sequence...

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

Whats the purpose of using Nextval while creating the sequence...

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

Post New Answer

More Oracle AllOther Interview Questions

How I can load an image into image item on Forms. I want to know about built-ins and procedure. and also code for it.

0 Answers  


WHAT ALL DIFFERENT KIND OF FUNCTIONS AVAILABLE WHILE DESIGN UNIVERSES?

0 Answers  


Differentiate between transaction type and transaction source? : oracle accounts receivable

0 Answers  


What is the difference between conversions and interfaces? : oracle accounts receivable

0 Answers  


Describe the P2P cycle ?

1 Answers  






What is the use of lockboxes? Steps for lock box : oracle accounts receivable

0 Answers  


i am working with OC 4.5 i have numbers in table in 10 row with some null values please tell me how to find total? Thanks

0 Answers   HCL,


Explain about party and customer in ar : oracle accounts receivable

0 Answers  


What is an Oracle database Full Backup?

0 Answers  


while creating requisitions i am unable to see the list of organisation can anyone help me out ?

0 Answers  


Is Oracle 7.3 is a single user or multi user..Is it possible to use this as a backend for web applications?

2 Answers  


hi iam kavya, i completed Oracle11i(finance module), i do not know how to face the interview questions please adivese me

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1790)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)