Server中询问当天

–当天: select * from T_news where datediff(day,addtime,getdate())=0 –最近三天: select * from T_news where datediff(day,addtime,getdate())<= 2 and datediff(day,addtime,getdate())>= 0 –本周: select * f […]