Définissez toutes les valeurs auto_increment dans SQL
SET @num := 0;
UPDATE your_table SET id = @num := (@num+1);
/*set All previous values one by on*/
Ali Raza Arain
SET @num := 0;
UPDATE your_table SET id = @num := (@num+1);
/*set All previous values one by on*/
ALTER TABLE table_name AUTO_INCREMENT = start_value;