misterx
01-05-2003, 01:09 AM
I wanted to have each row in my table get an automatically incremented id number so I added an auto_increment column. There were originally 4 rows and it numbered them nicely from 1 to 4.
Then while testing I deleted the row with id=4 and added a new row, using NULL as the id value.
I would like it to give the new row the id of 4 since it is technically the 4th row but it gave it 5, as in the 5th one ever created.
Just wondering if there is a way around that. Thanks.
Then while testing I deleted the row with id=4 and added a new row, using NULL as the id value.
I would like it to give the new row the id of 4 since it is technically the 4th row but it gave it 5, as in the 5th one ever created.
Just wondering if there is a way around that. Thanks.