Comment pouvez-vous mettre à jour manuellement l'index d'une table MySQL?

StackOverflow https://stackoverflow.com/questions/930843

  •  06-09-2019
  •  | 
  •  

Question

réinitialiser l'index précédent par accident, et maintenant je dois mettre à jour manuellement afin que l'index = nombre de lignes dans le tableau.

Quelle est la commande SQL pour cela?

Était-ce utile?

La solution

ALTER TABLE tablename AUTO_INCREMENT = 1

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top