Oracle SQL:如果我在日期字段上进行比较操作员,我仍然需要一个不为null
如果我要在日期字段上进行比较操作员(>,,, =)
If I am doing a comparison operator (>, <, =) on a date field do I also need a IS NOT NULL on the date field
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确理解您,那就不 - 您不必检查它是否不是null。
例如(今天是
日期'2022-07-07'
,2022年7月7日):如果您包括
而不是null
null 检查,您将获得相同的结果:If I understood you correctly, then no - you don't have to check whether it is not null.
For example (today is
date '2022-07-07'
, 7th of July 2022):If you include the
not null
check, you'll get the same result: