前一天:DATEADD(DAY,-1,convert(char(10),getdate(),120)) 当天:DATEADD(DAY,0,convert(char(10),getdate(),120))