📜  mysql 删除后自动递增 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:26.756000             🧑  作者: Mango

代码示例3
set @autoid :=0; 
update Table_Name set AutoIncremented_Column = @autoid := (@autoid+1);
alter table Table_Name Auto_Increment = 1;

@Zenonymous