Auto-increment in Oracle without using a trigger

Lakshmi picture Lakshmi · Nov 25, 2008 · Viewed 32.7k times · Source

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

Answer

Dheer picture Dheer · Nov 25, 2008

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