rollback transaction; if @trapping_method='C' begin update Check_Complete set flag = '2' where typeName = 'INCORRECT_BILLS'; end; end; @@error是判断上面执行的语句有没有错误 现在要改成PL/SQL
@@error 这个在PL/SQL 中怎么写??
@@error 的上面执行了什么操作? 数据库操作啊,插 删 更新之类的 begin --执行你前面的操作 exception when others then 执行rollback等等sql语句; end
把你的这块换成oracle 放到exception中 exception when others be