Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能解释一下如何
WHERE customer_artwork_issued = '0000-00-00'
可以返回结果如
2006-10-18 0000-00-00
当我执行上述查询时,为什么会在此处显示 2006 年的日期?
它不会。您可以使用以下方法进行测试:
SELECT CAST('2006-10-18' AS DATE) = '0000-00-00';
此比较返回 0。我猜您有多个日期列并且正在查看错误的列。