2014年1月15日 - select * from ShopOrder where datediff(week,[ordTime],getdate()-1)=0 //查询当天日期在一周年的数据. select * from ShopOrder where ...
www.360doc.com