tags:

views:

87

answers:

1

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?

+3  A: 

ALTER TABLE tablename AUTO_INCREMENT = 1

dusoft