数据库日期函数extractJAY.LIN 收录于 Mybatis 2025-01-03 约 74 字 预计阅读 1 分钟 目录 数据库日期函数(extract)extract是属于数据库的DML语言,用法如下:在数据库中存取了出生日期,需要根据出生日期计算年龄 select extract(year from age(now(),i.birthday)) age from information iPlease enable JavaScript to view the comments powered by Giscus.