如何查询昨日的数据SQL语句怎么写,要查询昨日的数据[解决办法]select * from tb where datediff(day,日期,
如何查询昨日的数据 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