“Restablecer IDS en MySQL” Código de respuesta

Restablecer IDS en MySQL

ALTER TABLE table_name AUTO_INCREMENT = 1;
Cute Crayfish

ID de incremento automático de restablecimiento de MySQL

SET  @num := 0;

UPDATE your_table SET id = @num := (@num+1);

ALTER TABLE your_table AUTO_INCREMENT =1;
Important Ibis

Respuestas similares a “Restablecer IDS en MySQL”

Preguntas similares a “Restablecer IDS en MySQL”

Más respuestas relacionadas con “Restablecer IDS en MySQL” en Sql

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código