Created
November 11, 2020 09:31
-
-
Save jack2jm/c0d2489514c9ea5e666152b7c4756a61 to your computer and use it in GitHub Desktop.
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
// Reset auto increment id | |
ALTER TABLE tablename AUTO_INCREMENT = 1 | |
// copy new table with indexes (Do not copy data) | |
CREATE TABLE newtable LIKE oldtable; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment