根据生日计算年龄


FLOOR(DATEDIFF(NOW(),p.birthday)/365.25) as age
原文地址:https://www.cnblogs.com/tang0125/p/13074357.html