-
-
Save Bhavya8181/dc421ad79021331089a02151acce067c 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