SELECT * FROM tmp;
+----+--------+
| id | name |
+----+--------+
| 1 | test 1 |
| 2 | test 2 |
| 3 | test 3 |
+----+--------+
3 rows in set
ALTER TABLE table_name AUTO_INCREMENT = value;
DELETE FROM tmp WHERE ID = 3;
ALTER TABLE tmp AUTO_INCREMENT = 3;
INSERT INTO tmp(name)
VALUES ('MySQL example 3');
SELECT
*
FROM
tmp;
+----+-----------------+
| id | name |
+----+-----------------+
| 1 | test 1 |
| 2 | test 2 |
| 4 | MySQL example 3 |
+----+-----------------+
3 rows in set
TRUNCATE TABLE table_name;
DROP TABLE table_name;
CREATE TABLE table_name(...);