Sequence
Generate Unique Sequential values
Sequence has 2 pseudocolumns
1. CURRVAL
2. NEXTVAL
CURRVAL : gives the most recently generated value
NEXTVAL : gives the next available value in the sequence to generate
sequence will start generating value from its MINVALUE
Default MINVALUE is 1
default incremental value of sequence is +1
Same sequence can be used in multiple tables but not suggestable. One sequence for one table.
Comments
Post a Comment