Empty mysql incremented and reset table data ID

 

Empty mysql table data from and reset by ID:

## 查看
mysql> select * from work_order_company;
mysql> show create table work_order_company;

## 清除
mysql> delete from work_order_company;
mysql> alter table work_order_company auto_increment=1;

## then you can view it again, no increment status display starts at 1

mysql> show create table work_order_company;

 

Guess you like

Origin www.cnblogs.com/immense/p/11406758.html