SQL 根据生日和日期计算年龄

 FLOOR(datediff(DY,p.Dob,o.RegisterTime)/365

原文地址:https://www.cnblogs.com/sdner/p/10082653.html