Select Count(一个字段) from TableName where 条件
count是数学函数,求和!
还有avg,max,min之类!
删除纪录!
sql语言:Delete  from TableName;
TTable控件:Table1.Delete删除当前纪录。

解决方案 »

  1.   

    求和1:select sum(字段) from yourtable
    求和2:计算字段
    删除记录1:delete from yourtable
    删除记录2:table.emptytable
      

  2.   

    求和:select sum(字段) from yourtable
    删除记录:delete * from yourtable
      

  3.   

     在SQL中COUNT好象不是求和吧?他只是列出数据值的数量。而不是数据值的和。
    同意 snjun(取个啥名儿好呢?!) 的!!!
      

  4.   

    Select sum(一个字段) from TableName where 条件sum 才是求和
    count是求总数
      

  5.   

    还是自己手工求和好点,省的去用那些带BUG的空间
    var yourcount:currency;
       yourcount:=0;
    wile not(tquery1.eof) do
    begin
       yourcount:=yourcount+tquery.fieldbyname('你要求和的字段名').asfloat;
       tquery1.next;
    end;