【点滴】Mysql按照IN中的内容排序
select * from m_admins where admin_id in ('10003','10001','10005') order by substring_index('10003,10001,10005', admin_id, 1);
select * from m_admins where admin_id in ('10003','10001','10005') order
原创
2016-02-19 14:15:36 ·
290 阅读 ·
0 评论