我期待這樣做從表MySQL查詢的GROUP BY月
where date >='2012-05-05' and date<='2012-07-20'
得到所有行我希望MySQL返回"group by"
行山智者從
2012-05-05 to 2012-06-05(incerement 1 month)
2012-06-06 to 2012-07-06(increment 1` month)
and remaining 2012-07-07 to 2012-07-20 (group the remaining 14 days)
遞增我怎麼寫我的查詢實現相同?
謝謝...
這樣你會返回行*月加一天*,而不僅僅是*月*。 – 2012-07-30 09:51:04