使用sql%rowcount捕捉update异常:

CREATE   OR   REPLACE   procedure   test1(retvalue   out   char)   as
begin
      update   test   set   a   = '1 '   where   a   =   '1 ';
      if   sql%rowcount   =   0   then
          retvalue   :=   'F ';
      else
          commit;
          retvalue   :=   'T ';
      end   if;
end   test1;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-01-11
  • 2021-08-15
  • 2021-11-17
  • 2021-11-03
猜你喜欢
  • 2021-08-05
  • 2022-12-23
  • 2021-09-27
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案