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.
date2がdate1の明日の日付であるかどうかをチェックするvb.netまたはmysqlの関数はありますか?
お気に入り
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()