![]() |
MySQL question
Let's say I have a table with an auto_increment field called "id"..
This table got 5 rows.. where "id" goes from 1-5.. Now I delete row 4 and 5.. The next row I insert will get "id" = 6... How do I get it do let the next "id" to start at 4 which is the highest available number? (Don't ask why I need that :) ) |
I use navicat.. you can edit anything in your table manually.
but I'd like to know how to automate this because that is annoying when you delete records :) |
Quote:
|
i think 'OPTIMIZE' does that. google it, im not positive
|
Quote:
|
why even use the auto increment feature then? just use your own id #'s
|
Quote:
|
| All times are GMT -7. The time now is 07:55 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123