希望结果与传递给 IN 条件的顺序相同:
SELECT * FROM `table_x` WHERE `id` IN (30, 12, 1001, 24);
得到:
编号 | 字段_a | 字段_b -------------------------- 12 | ... | ... 24 | ... | ... 30 | ... | ... 1001 | ... | ...
期待:
编号 | 字段_a | 字段_b -------------------------- 30 | ... | ... 12 | ... | ... 1001 | ... | ... 24 | ... | ...