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

Popular posts from this blog

Vim vi how to reload a file your editing