select * from tabel where data1 between GETDATE() and GETDATE() -7
where 日期字段>=getdate()-7
取getdate()做判断不行吗?