sql语句order by排序问题

根据某个字段的值排序,等于这个值的放最前面,不等的放后面

 select * from [DTS_Interface] order by case when from_tag_name='木质饰条' then 0 else 1 end

猜你喜欢

转载自www.cnblogs.com/ykgbk/p/10742026.html
今日推荐