还是sqlserver 中的时间函数的使用。
select DateDiff(year,A.FBIRTHDAY,getdate()) from Employee A。
其中A.FBIRTHDAY为datetime类型。![]()
本文介绍了 SQL Server 中 DateDiff 函数的使用方法,通过一个具体示例展示了如何计算两个日期之间的年份差值。
还是sqlserver 中的时间函数的使用。
select DateDiff(year,A.FBIRTHDAY,getdate()) from Employee A。
其中A.FBIRTHDAY为datetime类型。![]()
2998

被折叠的 条评论
为什么被折叠?