i need to perform an operation (in this case DATEDIFF()) on 2 dates. But at least one of those dates is incomplete.
例如,DATEDIF (2010-01-00 , 2010-02-01 ) OR DATEDIF (2010-01-00 , 2010-02-00 )将返回NULL。
事实上,在,该手册称,DAIF可处理不完整的日期,因为所有计算功能的日期。
诚然,don不希望改变我的数据库,而且确实需要这样做,你们是否知道这样做的方法,这是一个trick滴吗?
I ask in general even if my actual issue is to perform this DATEDIF.