还是sqlserver 中的时间函数的使用。 select DateDiff(year,A.FBIRTHDAY,getdate()) from Employee A。 其中A.FBIRTHDAY为datetime类型。