Created
June 26, 2010 01:05
-
-
Save rxgx/453658 to your computer and use it in GitHub Desktop.
Reset table IDs and AUTO_INCREMENT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE `users` DROP `id`; | |
ALTER TABLE `users` AUTO_INCREMENT = 1; | |
ALTER TABLE `users` ADD `id` int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment