相关文章推荐
风流的大蒜  ·  How to get Yarn ...·  1 年前    · 
from mytable
select TRUNC((to_char(sysdate, 'yyyyMMdd') - to_char(birth, 'yyyyMMdd')) / 
             10000) as age 
from mytable



注:sysdate 为系统日期时间,birth 为表中出生日期字段