Try OpenEdge Now
skip to main content
DataServer for Oracle
Initial Programming Considerations : Database design issues : Sequence generator
 

Sequence generator

A sequence generator is a database object that provides incremental values within any integer range. You can specify any positive or negative increment. The DataServer supports the Oracle sequence generator. To define Oracle sequences, you use the SQL CREATE SEQUENCE statement and indicate the name, minimum and maximum values, increment, and whether numbers are reused. For example, this is the code for creating a sequence named seq-table-name that starts with 1 and increments by 1:
CREATE SEQUENCE seq-table-name START WITH 1 INCREMENT BY 1
Note: Do not define Oracle sequences with names ending in _SEQ unless this manual instructs you to do so. The DataServer uses Oracle sequences whose names end in _SEQ for internal purposes.
* Comparing OpenEdge and Oracle sequence generator features
* The INT64 data type effects on Oracle database sequences