Bird
0
0

Which keyword correctly initiates an exception handling section within a PostgreSQL PL/pgSQL block?

easy📝 Syntax Q3 of 15
PostgreSQL - Advanced PL/pgSQL
Which keyword correctly initiates an exception handling section within a PostgreSQL PL/pgSQL block?
AEXCEPTION
BCATCH
CTRY
DHANDLE
Step-by-Step Solution
Solution:
  1. Step 1: Identify the block structure

    PostgreSQL uses BEGIN to start a block and EXCEPTION to start the exception handling part.
  2. Step 2: Recognize correct keyword

    Among the options, only EXCEPTION is valid to start the exception section.
  3. Final Answer:

    EXCEPTION -> Option A
  4. Quick Check:

    EXCEPTION starts the exception block [OK]
Quick Trick: EXCEPTION keyword starts exception handling [OK]
Common Mistakes:
  • Using TRY or CATCH which are not PostgreSQL keywords
  • Confusing HANDLE with EXCEPTION

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes