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
Post a Comment