create table test
(rsserialno char(5),
employeename varchar(20),
birthdate datetime)
insert test(rsserialno,employeename,birthdate)
SELECT 'RS001','ZHANG','1975-8-1'
UNION ALL SELECT 'RS002','LI','1984-1-3'
UNION ALL SELECT 'RS003','WANG','1980-6-23'
SELECT * FROM TEST
select rsserialno,employeename,birthdate,datediff(mm,birthdate,getdate())/12 as 年龄 from test