sql reset auto increment to 1 code example
Example 1: sql reset auto increment
ALTER TABLE tmp AUTO_INCREMENT = 3;
Example 2: mysql reset auto increment to 1
ALTER TABLE tablename AUTO_INCREMENT = 1
ALTER TABLE tmp AUTO_INCREMENT = 3;
ALTER TABLE tablename AUTO_INCREMENT = 1