Fight With Me!!!

导航

sqlserver得到昨天的数据

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

witdate表示的比较字段   

 

posted on 2016-05-29 14:19  nickTimer  阅读(824)  评论(0编辑  收藏  举报