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?

Was it helpful?

Solution

ALTER TABLE tablename AUTO_INCREMENT = 1

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top