DROP TABLE IF EXISTS ids;
SET NAMES UTF8MB4;
CREATE TABLE ids (
id INT,
KEY (id)
) DEFAULT CHARSET UTF8MB4;
INSERT INTO ids VALUES(1);
INSERT INTO ids VALUES(2);
INSERT INTO ids VALUES(3);
SELECT * FROM ids ORDER BY id;
id
1
2
3
DELETE FROM ids WHERE id = 1;
SELECT * FROM ids ORDER BY id;
id
2
3
DELETE FROM ids WHERE id = 2;
SELECT * FROM ids ORDER BY id;
id
3
DELETE FROM ids WHERE id = 3;
SELECT * FROM ids ORDER BY id;
id
DROP TABLE ids;
