> 数据库 > MySQL >

mysql order by 特殊排序

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)