Postgresql function to calculate current age
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
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