Skip Top Menu Navigation
Skip Top Menu Navigation

The FREE Enterprise Open Source Database

  Software Documentation Tools Interfaces Administration Development
 

 
You Are Here:  SAP DB > Documentation > How To > Number Generator

SAP DB is now SAP MaxDB! For more information, visit the SAP MaxDB pages in the SAP Developer Network.

How to Produce Number Generators

Catchwords: SEQUENCE, SERIAL, auto_increment, IDENTITY, NEXTVAL, CURRVAL

Use

SAP DB offers the following options for the automatic generation of numbers:

  • CREATE SEQUENCE statement

    Generation of numbers for cross-table use

    See also:
    Reference Manual: SAP DB 7.2 and 7.3 ® Data Definition ® CREATE SEQUENCE Statement.



  • SERIAL data type

    Generation of numbers for a single column of a table

    See also:
    Reference Manual: SAP DB 7.2 and 7.3 ® Data Definition ® CREATE TABLE Statement® Column Definition ® Data Type



Search / Contact Info

Questions or comments about the Web site? Contact the webmaster.