select datediff('2010-02-23','1979-10-27') div 365 as age_y,
(datediff('2010-02-23','1979-10-27') mod 365) div 30 age_m,
(datediff('2010-02-23','1979-10-27') mod 365) mod 30 age_d
ลองแบบนี้ได้มั้ยครับ...
select datediff('Date()','birthdate') div 365 as age_y,
(datediff('Date()','birthdate') mod 365) div 30 age_m,
(datediff('Date()','birthdate') mod 365) mod 30 age_d