日期:2014-05-18 浏览次数:20556 次
也可以 update a set col=b.num from tb a inner join (select col1,sum(col) as num from tb group by col)b on a.col1=b.col1