SELECT * FROM test where DATEDIFF(d,witdate,getdate()) = 1

witdate表示的比较字段

05-23 17:24