How do you manually update a MySQL table's index?
-
06-09-2019 - |
Question
I reset the previous index by accident, and now I need to manually update it so that index = number of rows in table.
What is the sql command for this?
Solution
ALTER TABLE tablename AUTO_INCREMENT = 1
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow