1SET @num := 0;
2
3UPDATE your_table SET id = @num := (@num+1);
4
5ALTER TABLE your_table AUTO_INCREMENT =1;
1set @autoid :=0;
2update Table_Name set AutoIncremented_Column = @autoid := (@autoid+1);
3alter table Table_Name Auto_Increment = 1;
4
5@Zenonymous