不对,应该是更新才对,不是插入,因为table1表内的字段已经存在统计数量总数
------------------------------------------ 
   字段1,字段2,字段3,字段4。
     10 ,    7,    14,    56,

解决方案 »

  1.   

    写回原来的table1表内,覆盖原来各字段内的统计总数的值
      

  2.   

    to : paoluo(一天到晚游泳的鱼)
    如果插入的记录不为空,侧计算结果来更新原来的字段值(无逗号的)
      

  3.   

    create trigger t_name
    on table_name
    for update
    as
    if update(字段)
    update table_name
    set table_name.字段=“处理过程”
    where 
    (select 关键字 from inserted)=table_name.关键字