– null值最小,在最后面
select * from test order by create_time desc;
– null值最小,在最前面
select * from test order by create_time asc;
– 没有null值
select * from test where create_time < sysdate();
– 没有null值
select * from test where create_time > sysdate();
mysql null值在比较和排序中的大小
最新推荐文章于 2024-07-25 13:51:31 发布
本文介绍了如何使用SQL进行数据查询,包括如何处理NULL值、按时间排序以及筛选特定日期的数据记录。


391

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



