I\'m trying to print for each person its age using this format :
E.g : 19 years , 8 months , 13 days.
I\'ve googled a lot and I\'ve noticed that there is a s
Syntax:
SELECT
CONCAT(
TIMESTAMPDIFF(YEAR, ?, NOW()),
' Years,',
TIMESTAMPDIFF(MONTH, ?, NOW()) % 12,
' Months,',
FLOOR(TIMESTAMPDIFF(DAY, ?, NOW()) % 30.4375),
' Days'
) AS age
FROM
DUAL