🎴 Flashcard Mode

Multiple Programming Languages Quiz

Card1 / 20
Mastered0
Review0
QuestionClick to flip

What statements must be used in order to raise a user-defined exception in PL/SQL?

AnswerClick to flip back
A
RAISE
B
EXCEPTION
💡 Explanation:

In PL/SQL, user-defined exceptions are raised using the RAISE statement. The EXCEPTION keyword is used in the exception declaration section (EXCEPTION_INIT pragma links error codes to exceptions) and in the exception handling block (BEGIN...EXCEPTION...END). To actually raise a user-defined exception, you must declare it, then use RAISE exception_name.

Change Mode