1. Use the truncate command instead of the delete command mysql> truncate test when emptying the table;
the advantages of using the truncate command:
1), the speed is fast
2), the auto-increment ID can be rearranged, so that the auto-increment ID is still calculated from 1
2. After clearing the table data, use alter to modify the table, mysql>alter table table_name auto_increment=1;
Navicat command line, the command must end with ";"