oracle空值排到最前面或最后面

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

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

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

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

 

posted @ 2020-10-28 15:30  芃蓉蓁蓁  阅读(255)  评论(0编辑  收藏  举报