oracle 空值排序,排在最前面或者最后面

1,排在最前面用order by name nulls first;

eg:select t.name,t.code from table t where t.code!='1' order by name nulls first;

2,排在最后面order by name nulls last;

eg:select t.name,t.code from table t where t.code!='1' order by name nulls last;

posted on 2016-05-11 11:51  anlove  阅读(17248)  评论(0编辑  收藏  举报

导航