AUTO_INCREMENT
Hallo, here i am with another simple question :) ?
I created a table with an auto_increment field.
After inserting some rows and after delete those rows... when I insert a new row (so the first row) the field doesn't start from 1, but from the last row-number inserted.
See this:
create table T(id integer not null autoincrement primary key);
suppose I insert 5 rows...
T is filled with five rows with id=1,2,3,4,5
delete from T;
T is empty...
insert into T values (null);
----
|id|
----
|6 |
----
How can I solve this problem??
Thanks again
Comet (Italy)
Subject
Written By
Posted
AUTO_INCREMENT
April 08, 2006 10:34AM
Sorry, you can't reply to this topic. It has been closed.
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.