stephanie
7-1-04, 07:55 PM
If someone could riddle me this - it would be a great help.
I have a mySQL table that is ordered by an ID number, which is auto increment. The program I am supporting REQUIRES the items to be in
order of ID number. However, now, I need to add an item to the middle of the table (let's say before id 9 and after id 8, for example. I need an item to be added between those).
Besides renumbering the index/id from the bottom up in the table and inserting an item, is there any way to do this in mySQL?
Yep, I realize the program shouldn't be coded to depend on the database table never changing...
Thanks,
S.
I have a mySQL table that is ordered by an ID number, which is auto increment. The program I am supporting REQUIRES the items to be in
order of ID number. However, now, I need to add an item to the middle of the table (let's say before id 9 and after id 8, for example. I need an item to be added between those).
Besides renumbering the index/id from the bottom up in the table and inserting an item, is there any way to do this in mySQL?
Yep, I realize the program shouldn't be coded to depend on the database table never changing...
Thanks,
S.