Is there a way to reset tables?
I mean not only deleting all rows, but also starting the auto_incrementing identifier back to 0?
To delete all data:
TRUNCATE TABLE tablename
In reset auto increment:
ALTER TABLE tablename AUTO_INCREMENT = 1
http://www.electrictoolbox.com/reset-auto-increment-value-mysql/
Source: https://habr.com/ru/post/1314341/More articles:How to start linux shell as from / etc / inittab - bashConfirm the change with respect to path length in .NET 4.0. - c #Updating an ASP.NET web application when a directory is deleted - c #HL7 2.X Standard Confirmation - hl7-v2How to ignore the difference between upper and lower case when searching with mysql - mysqlWhat are some strategies for unit testing workflows in WF 4? - workflowWhere and how to handle rail exceptions? - ruby | fooobar.comcan i reset the auto_increment field in mySql? - sqlNHibernate and inheritance creating unexpected double request behavior? - c #Is there an SNMP application for log4net? - log4netAll Articles