sql语句中year(getdate())-year(birthday)=22是什么意思?

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 10:45:19

sql语句中year(getdate())-year(birthday)=22是什么意思?
sql语句中year(getdate())-year(birthday)=22是什么意思?

sql语句中year(getdate())-year(birthday)=22是什么意思?
1.函数year(getdate()) 表示当前的年份
2.函数year(birthday) 表示出生的年份
3.year(getdate())-year(birthday)=22
就是“当前的年份”-“出生的年份”=22(单位是年)
这个应该计算的年龄吧