Oracle Age calculation from Date of birth and Today

前端 未结 13 1388
Happy的楠姐
Happy的楠姐 2020-11-27 15:31

I want to calculate the current Age from Date of Birth in my Oracle function.

What I am using is (Today-Dob)/30/12, but this is not accurate as some mon

相关标签:
13条回答
  • 2020-11-27 16:12

    Age (full years) of the Person:

    SELECT
      TRUNC(months_between(sysdate, per.DATE_OF_BIRTH) / 12) AS "Age"
    FROM PD_PERSONS per
    
    0 讨论(0)
提交回复
热议问题