那个大哥帮帮小弟啊谢谢了。

解决方案 »

  1.   

    触发器有写,after 还是before!
      

  2.   

    使用行触发器实现就好了
    这里有触发器的介绍:http://blog.csdn.net/lanmanonline/article/details/1560703
      

  3.   

    create or replace trigger xxxxxx
        after update of 字段名称 on 表名 
           for each row
    declare 
        new_str VARCHAR2(40);
        old_str VARCHAR2(40);
    begin
        new_str  := :new.字段名称;
        old_str  := :old.字段名称;
        dbms_output.put_line('new_str=='||new_str);
        dbms_output.put_line('old_str=='||old_str);
        if (new_str <> old_str)
           dbms_output.put_line('触发器已执行,数据已经更新!');
        esle
           dbms_output.put_line('触发器没有执行,数据没有变化!');
        end if;end xxxxxx;