mysql - Reset autoincrement to fill empty gaps -


i'm building simple userdatabase i'm using auto increment unique user id. when delete single user there gap in user id. i'm curious if it's possible make auto increment fill in these empty gaps instead of using next highest number:

user id
1000
1001
1002
1004

right next user id insert table 1005, 1003 instead. possible?

no autoincrement not possible. need manually coding. normally, if keep maxvalue high enough, skipped record wouldn't of problem.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -