You must specify one of the following handler types in a handler declaration:
- CONTINUE
- EXIT
When a stored procedure encounters a condition, the specified handler action is executed regardless of the handler type specified.
The difference is that CONTINUE passes control to the next statement within the compound statement, and EXIT passes control to the next statement outside the compound statement that contains the handler.
The behavior of CONTINUE and EXIT handlers is described in DECLARE HANDLER (CONTINUE Type) and DECLARE HANDLER (EXIT Type).