I have a table that contains a primary key column, which is automatically incremented from the application. How to change column in identifier column in Oracle 12c?
The following is an example of an example -
create table tmp_identity (
id number(100) primary key,
value varchar2(100)
);
Let's say we populated the table with the following data -
ID VALUE
---------------
1 Sample 1
2 Sample 2
3 Sample 3
What we plan to do is turn this column id
into a columnthat will be -
- Auto increase by 1
- Start at 4
How can i do this? If this is not possible, is there any work available?
source
share