SQL SERVER数据库中,想要当列的值是前几列之和,详细说明如下:

2025-04-12 19:49:08
推荐回答(1个)
回答1:

select fid, fcount, (select sum(fcount) from tb b wher b.fid<=a.fid) tt from tb a