Auto-increment in Oracle without using a trigger

后端 未结 9 1979
野的像风
野的像风 2020-11-28 09:52

What are the other ways of achieving auto-increment in oracle other than use of triggers?

9条回答
  •  庸人自扰
    2020-11-28 10:44

    You can create and use oracle sequences. The syntax and details are at http://www.techonthenet.com/oracle/sequences.php

    Also read the article http://rnyb2.blogspot.com/2006/02/potential-pitfall-with-oracle-sequence.html to understand the limitations with respect to AUTONUMBER in other RDBMS

提交回复
热议问题