方法一: SELECT TRUNC(months_between(sysdate, birth)/12) AS age from mytable 方法二: select TRUNC((to_char(sysdate, yyyyMMdd) – to_char(birth, yyyyMMdd)) / 10000) as age from mytable 注:sysdate 为系统日期时间,bi
在线咨询:
邮箱: xwei067@foxmail.com
工作时间:周一至周五,9:00-17:30,节假日休息