SQL排序 空值的后面

按sort排序,sort为空的在后面
select * from 表名  order by (case when sort is null or sort='' then 1 else 0 end),sort

 

posted @ 2013-10-09 14:19  Liu66~  阅读(3059)  评论(0编辑  收藏  举报