mysql 按月分组查询
select `date`,DATE_FORMAT(date,'%Y%m') months,sum(`install`) install_count,sum(`launches`) launches_count,sum(`active`) active_count from tj_app_day_data where appid='$appid' and date >='$start_date' and date<='$end_date' group by months