标签:select sqli HERE family data where sql style 时间
表格:data
时间 金额
2015-01-01 10000
2015-01-02 20000
2015-01-03 30000
select a.时间,sum(b.金额) as 累计金额
from data a,data b
where a.时间>=b.时间
group by a.时间
标签:select sqli HERE family data where sql style 时间
原文地址:https://www.cnblogs.com/thechain/p/9267956.html