<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->比如sql ="SELECT * FROM A WHERE `id` IN (5,18,25,4)"
ログイン後にコピー
现在的问题是怎么才能实现排序按照in数组(5,18,25,4)里的顺序来排序结果集?
------解决方案-------------------- ... order by find_in_set(id, '5,18,25,4')