DROP TABLE IF EXISTS ids;
SET NAMES UTF8MB4;
CREATE TABLE ids (
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT
) ENGINE=Mroonga DEFAULT CHARSET=utf8mb4;
INSERT INTO ids VALUES();
INSERT INTO ids VALUES();
INSERT INTO ids VALUES();
INSERT INTO ids VALUES();
INSERT INTO ids VALUES();
SELECT * FROM ids WHERE ids.id >= 3 ORDER BY ids.id DESC LIMIT 3;
id
5
4
3
DROP TABLE ids;
