Search code examples
oracle-databasetriggersauto-incrementsequences

Auto-increment in Oracle without using a trigger


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


Solution

  • As far as I can recall from my Oracle days, you can't achieve Auto Increment columns without using TRIGGER. Any solutions out there to make auto increment column involves TRIGGER and SEQUENCE (I'm assuming you already know this, hence the no trigger remarks).