select * from table where id in (5,3,6,1) order by field(排序字段,5,3,6,1)
記錄按照5,3,6,1的順序返回
如果沒有order by field 將按 1,3,5,6的順序返回
或者
select * from table where id in (5,3,6,1) order by INSTR('5,3,6,1',排序字段)
select * from table where id in (5,3,6,1) order by field(排序字段,5,3,6,1)
記錄按照5,3,6,1的順序返回
如果沒有order by field 將按 1,3,5,6的順序返回
或者
select * from table where id in (5,3,6,1) order by INSTR('5,3,6,1',排序字段)
$fileContent = trim($fileContent); $fileContent=$queueList->characet($fileContent);