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,‘,‘))
时间: 2024-10-07 18:31:26