如何查询昨日的数据
SQL语句怎么写,要查询昨日的数据
------解决方案--------------------select * from tb where datediff(day,日期,getdate()) = 1
------解决方案--------------------select * from TAB where datediff(day,DATE,getdate())=1
------解决方案--------------------select * from 表 where datediff(dd,日期字段,getdate())=1