Home > database > How do you use the oracle stored procedure to calculate age and modify age
How do you use the oracle stored procedure to calculate age and modify age
Time:09-16
Known conditions table, the table of date of birth field create_data The age field for age Seek help from a great god
CodePudding user response:
This simple create_data - sysdate, that is, the number of days of birth, want to know, as/365, SELECT create_data, date of birth (create_data - sysdate)/365 age FROM the table name,
CodePudding user response:
Said the calculation rules,
Is directly according to the years, or to a month, or the day?