正文:
Oracle默认null是最大值
--null值始终排前面 select * from table order by id asc nulls first --null值始终排后面 select * from table order by id desc nulls last
参考博客:
ORACLE中null的排序问题 - heartdiamond的专栏 - 优快云博客
https://blog.youkuaiyun.com/heartdiamond/article/details/6057562
本文详细介绍了在Oracle数据库中如何处理NULL值的排序问题,包括让NULL值始终排在最前或最后的方法,并提供了具体的SQL语句示例。
515

被折叠的 条评论
为什么被折叠?



