sql auto increment reset code example
Example 1: mysql reset auto increment value
ALTER TABLE table_name AUTO_INCREMENT = 1;
Example 2: mysql reset auto increment
ALTER TABLE `Table Name` AUTO_INCREMENT = 1;
Example 3: sql reset auto increment
ALTER TABLE tmp AUTO_INCREMENT = 3;
Example 4: sql server reset auto increment
DBCC CHECKIDENT (mytable, RESEED, 0)