查询表中昨天和今天的数据

select * from tbOutData where datediff(day,datCashTime,getdate())
between datediff(day,(getdate()-1),getdate()) and datediff(day,getdate(),getdate())

posted @ 2012-03-17 15:17  江宁织造  阅读(203)  评论(0编辑  收藏  举报