当前位置:首页 > IT攻略 > 正文

year函数计算器?

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

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

year函数计算器?

最新文章