mysql每日汇总

SELECT DATE_FORMAT(departure_time,'%Y-%m-%d') as demand_time ,
count(0) as count FROM haikou_1 
where left(`geo`,6)='w7w3y2' 
AND DATE_FORMAT(departure_time,'%Y-%m-%d') BETWEEN '2017-06-01' AND '2017-08-31'
GROUP BY  demand_time 
ORDER BY demand_time

你可能感兴趣的:(论文2)