mysql order by 特殊排序
时间:2015-06-22 18:51 来源:linux.it.net.cn 作者:IT
select * from a order by substring_index('2,1,5',id,1);
select * from a order by find_in_set(id,'2,1,5')
(责任编辑:IT)
select * from a order by substring_index('2,1,5',id,1); select * from a order by find_in_set(id,'2,1,5') (责任编辑:IT) |