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

witdate表示的比较字段   

 

相关文章: