Postgresql function to calculate current age
2019-10-03
PostgreSQL includes many useful utility functions. One of those is the age
function.
SELECT age(timestamp '1999-06-20');
age
-------------------------
20 years 3 mons 13 days
2019-10-03
PostgreSQL includes many useful utility functions. One of those is the age
function.
SELECT age(timestamp '1999-06-20');
age
-------------------------
20 years 3 mons 13 days