如何获取一张表里今天,昨天的数据?写sql代码,请教代码[解决办法]curdate()-1昨天数据curdate()今天数据。[解决办法]昨天数据select *from tbwhere col < curdate() and col > curdate()-1