Auto-increment in Oracle without using a trigger

后端 未结 9 2002
野的像风
野的像风 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:22

    From 12c you can use an identity column, which makes explicit the link between table and auto-increment; there's no need for a trigger or a sequence. The syntax would be:

    create table  (  generated as identity );
    

提交回复
热议问题