mysql 根据生日计算出年龄信息

select IFNULL(TIMESTAMPDIFF(YEAR, birthday, CURDATE()),0) AS age from user
相关文章
相关标签/搜索