就是你要三年内的资料咯,很简单用sql语句select * from 表 where datediff(yy,时间,getdate())<4就行了~
select * from 表名 where datediff(year,时间字段,getdate())<=3