我做了个检索,
条件是检索出日期是两年内的记录,表CATALOG里有filedate字段,我写的出错
select * from catalog
where year(filedate)>year(DateTime.Now)-2