我想做一些事情,比如从表中获取所有行
where date >='2012-05-05' and date<='2012-07-20'
我希望 MySQL 返回"group by"
行 mont wise 从
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)
我怎样才能编写我的查询来达到同样的效果?
谢谢...