1. 按月份统计数据 select month(date),sum(visit_times) from t_table_exapmle where year(date)= '2018' and group by month(date);