日期:2014-05-18 浏览次数:20687 次
--把上边的id修改为num1,tab改为num1 select num1,(select sum(num1)from tb where num1<=t.num1) as a from tb as t