mysql使用笔记 发表于 2018-06-15 阅读次数: Mysql自增ID重置,不需要删除数据1update table_name SET id = id - ( select min from ( select MIN(id) as min from table_name) as t) - 1;