-- 删除全部数据
DELETE FROM `order` WHERE id > 0;
-- 查看当前自增变量值
SELECT AUTO_INCREMENT FROM information_schema.tables WHERE table_name='order';
-- 修改自增变量值为1(不删除数据重置小于最大id则无效)
ALTER TABLE `order` AUTO_INCREMENT = 1;
-- 删除全部数据
DELETE FROM `order` WHERE id > 0;
-- 查看当前自增变量值
SELECT AUTO_INCREMENT FROM information_schema.tables WHERE table_name='order';
-- 修改自增变量值为1(不删除数据重置小于最大id则无效)
ALTER TABLE `order` AUTO_INCREMENT = 1;