Carson Myers Carson Myers - 1 year ago 76
MySQL Question

can I reset auto_increment field in mySql?

Can I reset the auto-increment index of a MySQL table so that it starts counting from zero again?

I deleted all the rows in the table--how can I reset that counter as well?

Answer Source

To delete all rows from a MySQL table AND reset the auto_increment value, use the truncate command.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download