/ Published in: MySQL
URL: http://ma.tt/2003/12/calculate-age-in-mysql/#comment-462995
It's not 100% accurate, but works fine for people under 1.480.
Expand |
Embed | Plain Text
SELECT FLOOR(DATEDIFF(CURRENT_DATE(), dob) / 365);
You need to login to post a comment.
