Can I reset the auto-increment index of a MySQL table so that it starts again from zero?
I deleted all the rows in the table - how can I reset to use this counter?
To remove all rows from the MySQL table AND reset the auto_increment value, use the truncate command.
truncate
http://dev.mysql.com/doc/refman/5.7/en/truncate-table.html
Or just crop the table, and do not delete the roles - this reduces and re-adds the table, resetting the auto-increment values ββin the process
Source: https://habr.com/ru/post/1314344/More articles:HL7 2.X Standard Confirmation - hl7-v2How to ignore the difference between upper and lower case when searching with mysql - mysqlMySQL: Is there a way to reset tables? - sqlWhat are some strategies for unit testing workflows in WF 4? - workflowWhere and how to handle rail exceptions? - ruby ββ| fooobar.comNHibernate and inheritance creating unexpected double request behavior? - c #Is there an SNMP application for log4net? - log4netQuery a DBF file using System.Data.Odbc.OdbcConnection when the path / file name has space - c #ScoreNinja titleText and subboard do nothing - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1314349/git-remote-repository-check-out-problem&usg=ALkJrhg2AI9Upp9zdGzKWl-Hov9aWfFHMgAll Articles