CURDATE() 返回MySQL服务器运行时间。...例如
TIMESTAMPDIFF( MONTH, dob_ field, CURDATE() ) % 12 计算月部分:
?...( MONTH, dob_ field, CURDATE()) % 12,' Months,',FLOOR( TIMESTAMPDIFF( DAY, dob_ field, CURDATE() ) %...( YEAR, DOB, CURDATE() ),
AGE_MONTH = TIMESTAMPDIFF( MONTH, DOB, CURDATE()) % 12,
AGE_DAYS = FLOOR(...TIMESTAMPDIFF( DAY, DOB, CURDATE()) % 30.4375 );
?