MySql查询结果按照指定顺序排序

select * from news where id=2 or id=5 or id=1 order by find_in_set(id,'2,5,1'); select * from news where id in(3,1,5) order by substring_index('3,1,2',id,1); FIND_IN_SET(str,strlist)  假如字符串str 在由N 子链组
相关文章
相关标签/搜索