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


Please Help Members By Posting Answers For Below Questions

How many segment are present in Oracle Manufacturing

2038


A scenario for amount correction & how to use amount correction functionality in AP invoices

1872


What is auto invoicing? Explain : oracle accounts receivable

798


How would you go about increasing the buffer cache hit ratio?

2230


Which is the best institute in Hyderabad to learn OBIEE and DataStage?Please tell me faculty name also

2041


what ASIS BUSINESS PROCESS IN ORACLE FINANCE

2006


where the dff data will be stored

1999


WHAT ALL DIFFERENT OPTIONS PRESENT IN WEBI?

2604


Explain the process of recievables in oracle financials. : oracle accounts receivable

881


My requirement is like in database some defects are present and i need to clean them.To be brief for example every employee should have active assigments.So for those records which are not having status as active or null ,i need to update the roecords using API with the correct value. Client will provide a flat file for the records whch are defected.So i need to run the API for those records (flat file)and update the data in database. So my question is how to handle this requirement.Is there any existing API for this purpose?If yes then please send me the NAME. How to update the records in the database using flatfile. Any pointer will be appreciated.Thanks in advance.

1948


I've got a database 10g and Form version 5.0 but unable to connect. Does Oracle 10g database supports form 4.5

2287


What is the disk migration? what is the steps involved in oracle disk migration?

988


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

1699


How to move the data from one flatfile to multiple staging tables?give me some examples? for example in po interface one flat file is there and multiple staging tables are there how can move it?please give me answer for this question?

2155


what is difference between inner join & nested query or subqueries

2711