简介这个用函数就可以了 select year(getdate( -year(出生日期 as 年龄 from 表名 getdate是 求系统时间 ,yeae是去时间里面的年份...
这个用函数就可以了 select year(getdate())-year('出生日期') as 年龄 from 表名 getdate是 求系统时间 ,yeae是去时间里面的年份