select * from table where id in (5,3,6,1) order by field(id,5,1)
记录按照5,1的顺序返回
如果没有order by field 将按 1,6的顺序返回