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