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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/10 07:11:43
sql语句中year(getdate())-year(birthday)=22是什么意思?sql语句中year(getdate())-year(birthday)=22是什么意思?sql语句中year

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(单位是年)
这个应该计算的年龄吧