时间:2021-07-01 10:21:17 帮助过:23人阅读
SELECT `id` FROM `topic` WHERE `id` IN (‘444‘,‘512‘,‘447‘,‘509‘,‘504‘,‘445‘,‘511‘) ORDER BY FIELD(id,‘444‘,‘512‘,‘447‘,‘509‘,‘504‘,‘445‘,‘511‘)
SELECT `id` FROM `topic` WHERE `id` IN (‘444‘,‘512‘,‘447‘,‘509‘,‘504‘,‘445‘,‘511‘) ORDER BY INSTR(‘444,512,447,509,504,445,511‘, CONCAT(‘,‘, id,‘,‘))
Mysql in 排序
标签:topic field order select from concat sel order by cat