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

1)After defining value set we define list of values, I need to enter 1000 values with out entering manually, how will you do that? 2)what are the parameters we use in a concurrent program? 3)what is payroll processing? 4)In organization window after defining an organization and organization classification how to create a new item in the others button? 5)If there are 10 users, How to restrict the selected users not to access the forms?

0 Answers   Cap Gemini,


What view would you use to look at the size of a data file?

1 Answers  


Explain the difference between ARCHIVELOG mode and NOARCHIVELOG mode and the benefits and disadvantages to each.

1 Answers   HCL,


When creating a user, what permissions must you grant to allow them to connect to the database?

4 Answers  


WHAT ALL DIFFERENT OPTIONS PRESENT IN WEBI?

0 Answers  






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

0 Answers  


1. What is PO rate variance gain and loss?

0 Answers   Oracle,


which gives Oracle R12 Financial training in delhi please give me answer its urgent?

0 Answers  


What is chargeback invoice? How do we create it? : oracle accounts receivable

0 Answers  


Is there any link between pr form(purchse requisition)and po form(purchase order)

0 Answers   L&T,


Whats the purpose of using Nextval while creating the sequence.

2 Answers   HCL,


I need a Technical evaluation between Oracle and SAP ? please do a need ful.

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • 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)