I have a table which contains a primary key column which is auto incremented from application. How can I modify the column to be an identity column in Oracle 12c?
A sample case is provided below-
create table tmp_identity (
id number(100) primary key,
value varchar2(100)
);
Say we populated the table with following data-
ID VALUE
---------------
1 Sample 1
2 Sample 2
3 Sample 3
What we are planning to do is to turn this id
column into an identity column which will-
- Auto increment by 1
- Start from 4
How can I do it? If it is not possible, then is there any work-around available for this?
id number(100)
column really have precision 100 ? On Oracle the precision can be from 1 to 38, and no more. – Opheliaophelie