Oracle Sequences and how to create one
Here is how to create a sequence and two of the most popular functions
to use on a sequence.
CREATE SEQUENCE <seq_name>
INCREMENT BY <integer>
START WITH <integer>
seq_name.NEXTVAL
seq_name.CURRVAL
Example:
CREATE SEQUENCE MySeq
INCREMENTED BY 1
START WITH 1
Comments