计算用户的年龄 SELECT DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS('1991-1-1')), '%Y')+0 AS age 转载于:https://www.cnblogs.com/odirus/p/5283439.html