📜  mysql where in keep order - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:53.137000             🧑  作者: Mango

代码示例1
SELECT *
FROM t
WHERE id IN(7,4,9,5,1)
ORDER BY FIELD(id,7,4,9,5,1));