QuestionQ16

VerifiedPL/SQL Language Fundamentals

Examine the SH.PRODUCTS table:

Question Image

A row exists in SH.PRODUCTS with PDT_ID = 1.

Now examine this code and the output executed by SH:

Question Image

Now examine this code block:

Question Image

Which error message(s) are displayed when user SH executes it?

Explanation

Dividing by zero raises the predefined ZERO_DIVIDE exception. The nested block has a WHEN ZERO_DIVIDE handler, which outputs Error in inner block and completes without reraising the exception. The exception therefore does not propagate to either enclosing handler. Oracle Database PL/SQL Language Reference: Overview of Exception Handling

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!