how to use sequence and what use of sequence cache

Answer Posted / pravin

sequence is sharable object in database which is use to
generate unique number
use of sequence is like
insert into table(emp_id,name)values
(sequencname.nextvalue,name)
&
cache is the memory use to how manu values preallocates in
memory & keep in memory defined in cache.
by default 20 values can be stored in cache.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to loop through a cursor variable?

552


What is the relation of a user account and a schema?

598


How to select some columns from a table in oracle?

537


What is the parameter mode that can be passed to a procedure?

561


What are the arithmetic operations?

569






What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?

516


What is blob datatype?

554


How to define a data source name (dsn) in odbc manager?

517


How to get execution path reports on query statements?

550


Explain compound trigger in oracle?

535


What operating systems are supported by oracle database 10g xe?

569


What is transaction control statement and how many types of transaction control statement in Oracle?

552


What do you mean by cdb and pdb in oracle 12c?

627


What is a cursor in oracle?

634


How do I limit the number of rows returned by an oracle query after ordering?

609