背景:排序时候对NULL值的处理,
1、排在最前:
select xx from student order by xx nulls first;
2、排在最后
select xx from student order by xx nulls last;
然后就搞定了!
背景:排序时候对NULL值的处理,
1、排在最前:
select xx from student order by xx nulls first;
2、排在最后
select xx from student order by xx nulls last;
然后就搞定了!