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.
vb.net 或 mysql 中是否有检查 date2 是否是 date1 明天的日期的函数?
喜欢
date1 = 6/4/2013 date2 = 6/5/2013 is date2 = tomorrow of date1? and also the vice versa id date1 = yesterday of date2?
在 mysql 和 vb 中是否有任何检查功能?或者这完全是逻辑?
你只是做一个比较:
where date(date2) = date(date1) + interval 1 day
该date()函数消除了任何可能导致相等失败的时间元素。
date()