Re: How to insert sequential number in primary row
The function of AUTO_INCREMENT is to provide a garunteed unique value for a PRIMARY KEY.
If you want sequential values, then you will have to provide them yourself.
If you stop and think about it, you don't want to change the primary key value on pre-existing rows. That would break any association you have with data in another table using the PRIMARY KEY as a FOREIGN KEY.
Good luck,
Barry.
Subject
Written By
Posted
Re: How to insert sequential number in primary row
April 23, 2024 05:01PM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.