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

What is a procedure in oracle?

777


What is a system tablespace?

796


Is it possible to insert comments into sql statements return in the data model editor ?

2323


What is a database table in oracle?

753


What is save point in oracle database?

989


What is procedure overloading in oracle?

775


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

872


Explain coalesce function?

833


Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).

2021


What is oracle data type?

730


What are the uses of a database trigger?

694


How many data types are supported?

811


what is the use of system.effective.date variable in oracle?

868


Explain the function of optimizer in oracle?

778


Is there a function to split a string in plsql?

766