Oracle PL/SQL - Are NO_DATA_FOUND Exceptions bad for stored procedure performance?

后端 未结 12 845
Happy的楠姐
Happy的楠姐 2021-02-03 23:14

I\'m writing a stored procedure that needs to have a lot of conditioning in it. With the general knowledge from C#.NET coding that exceptions can hurt performance, I\'ve always

12条回答
  •  生来不讨喜
    2021-02-03 23:48

    @DCookie

    I just want to point out that you can leave off the lines that say

    EXCEPTION  
      WHEN OTHERS THEN    
        RAISE;
    

    You'll get the same effect if you leave off the exception block all together, and the line number reported for the exception will be the line where the exception is actually thrown, not the line in the exception block where it was re-raised.

提交回复
热议问题