sum(money) over (partition by left(data,4) order by data)
(4条消息) mysql 按月分组累计统计数据,纯sql实现的一个方法_奔跑吧Daniel的博客-CSDN博客_sql按月分组统计