user114060
user114060

Reputation:

How do you manually update a MySQL table's index?

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?

Upvotes: 1

Views: 194

Answers (1)

dusoft
dusoft

Reputation: 11469

ALTER TABLE tablename AUTO_INCREMENT = 1

Upvotes: 2

Related Questions