Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question.
Asked: May 08, 2017 - 11:23 am UTC
Last updated: December 12, 2018 - 3:31 am UTC
Version: 12c
Viewed 10K+ times! This question is
SQL> create table t ( x int generated as identity, y int); Table created. SQL> SQL> insert into t (y) select 10*rownum from dual connect by level <= 10; 10 rows created. SQL> SQL> alter table t modify x generated as identity ( minvalue 0 ); Table altered. SQL> SQL> alter table t modify x generated as identity ( increment by -10 ); Table altered. SQL> SQL> insert into t (y) values ( 1 ); 1 row created. SQL> roll; Rollback complete. SQL> SQL> alter table t modify x generated as identity ( increment by 1); Table altered. SQL> SQL> insert into t (y) values ( 1 ); 1 row created. SQL> SQL> select * from t; X Y ---------- ---------- 1 10 2 20 3 30 4 40 5 50 6 60 7 70 8 80 9 90 10 100 1 1
A reader, May 14, 2017 - 2:22 am UTC
A reader, December 05, 2018 - 1:23 pm UTC
Share and learn SQL and PL/SQL; free access to the latest version of Oracle Database!
Classes, workouts and quizzes on Oracle Database technologies. Expertise through exercise!