In Oracle 12c, it's possible to use AUTO_INCREMENT
functionality by using the keywords/phrase GENERATED ALWAYS AS IDENTITY
. This seems cumbersome/clunky to me, given that in other dialects of SQL that I'm used to (SQLite, MySQL), the same is achieved with the keyword AUTO_INCREMENT
or AUTOINCREMENT
.
Is it possible to create an alias/shortcut/makro/function to get Oracle to treat AUTO_INCREMENT
as meaning the same as GENERATED ALWAYS AS IDENTITY
? (I'm not proposing editing the source code as a practical solution. I'd rather submit a feature request.)