1.默认排序,会将null值排在首位
select * from student
order by age
2.null值后排
select * from student
order by ISNULL(age)
3.null值后排,非null升序
select * from student
order by ISNULL(age), age
版权声明:本文为weixin_43784418原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。