标签:info rom select 分享 group 技术 count edit inf
--原始数据
select templateid,needitem1Count from db_tank..TS_CardMain
--累计数据
select t1.templateId,t1.needitem1Count,sum(t2.needitem1count) sum_num from db_tank..TS_CardMain t1
cross join db_tank..TS_CardMain t2
where t2.templateid <= t1.templateid
group by t1.templateid,t1.needitem1Count
标签:info rom select 分享 group 技术 count edit inf
原文地址:https://www.cnblogs.com/gered/p/9773566.html