我有一个生日字段,其中包含这些值:09/16/1981 (This one will be used)03/19/1953 (This one will be used)SELECT AVG(NULLIF(YEAR(NOW())-YEAR(Birthdate), 0)) AS AvgAge FROM `Us
我正在用php/MySQL做一个应用程序,我需要每年获取统计数据,按状态分组。create table Archive ( dates (xx-xx-xxxx) )createdate_format(dates,'%Y') as date, count(id) as nbId from archive gro