sql语句order by排序问题

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

 

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

 

posted @ 2019-04-20 18:23  岳凯歌  阅读(363)  评论(0编辑  收藏  举报