How to create id with AUTO_INCREMENT on Oracle?

后端 未结 16 1599
死守一世寂寞
死守一世寂寞 2020-11-21 04:52

It appears that there is no concept of AUTO_INCREMENT in Oracle, up until and including version 11g.

How can I create a column that behaves like auto increment in Or

16条回答
  •  太阳男子
    2020-11-21 05:58

    oracle has sequences AND identity columns in 12c

    http://www.oracle-base.com/articles/12c/identity-columns-in-oracle-12cr1.php#identity-columns

    I found this but not sure what rdb 7 is http://www.oracle.com/technetwork/products/rdb/0307-identity-columns-128126.pdf

提交回复
热议问题