select trunc(months_between(sysdate,to_date('2000-01-02','yyyy-mm-dd'))/12) from dual
Oracle 计算年龄
最新推荐文章于 2024-11-08 23:38:17 发布
select trunc(months_between(sysdate,to_date('2000-01-02','yyyy-mm-dd'))/12) from dual