select * from test where id in(3,1,5) order by find_in_set(id,'3,1,5');
select * from test where id in(3,1,5) order by substring_index('3,1,2',id,1);
转载于:https://www.cnblogs.com/earlyup/archive/2010/12/14/1906002.html
select * from test where id in(3,1,5) order by find_in_set(id,'3,1,5');
select * from test where id in(3,1,5) order by substring_index('3,1,2',id,1);
转载于:https://www.cnblogs.com/earlyup/archive/2010/12/14/1906002.html