数据库中知道入学日期和出生日期,怎么查询入学年龄

2025-02-27 11:50:41
推荐回答(2个)
回答1:

select datediff(year,出生日期,getdate()) from 表名

回答2:

输出(运算入学减出生)