怎样把一个字段求和,最好具体点

解决方案 »

  1.   

    'select sum(a1) as sumofa1 from table1'
      

  2.   

    用楼上的SQL语句,然后Fields[0]字段就是该合计值,可以引用
      

  3.   

    SELECT SUM(字段名)  into 别名 from table
      

  4.   

    1.select sum(fie_a) as b from tab_abc group by fie_x
    注一般地,求和都是分组求和的;
      

  5.   

    update table set
      field1=(select sum(field2) from table where condition)
    where condition;
      

  6.   

    'select sum(a1) as sumofa1 from table1'