create or replace procedure To_Update() as
  begin
   update tbname set col1 = 1 where col2 = 2;
   commit;
  exception
   when others then
    roll back;
  end;

解决方案 »

  1.   

    create or replace trigger 'trigger_name' AFTER UPDATE OF
        "column_name"
        ON "tablename"
        FOR EACH ROW
    DECLARE
    BEGIN
     .....
    END;
      

  2.   

    不好意思啊!kinlin(小林)写错了create or replace procedure procedure_name as
      begin
       update table_name set column_name1 = 1 where column_name2 = 2;
       commit;
      exception
       when others then
        roll back;
      end;
      

  3.   

    CREATE OR REPLACE PROCEDURE PRO_NAME 
    IS 
    BEGIN
      UPDATE TABLE_NAME 
        SET COL_NAME='SDF';
        COMMIT;
    END;