You can specify these options for a condition handler.
- CONTINUE
- EXIT
- Type of condition handler being requested. For details, see these topics:
- SQLSTATE
- Keyword introducing an sqlstate value for which the exception or completion condition is to be handled.
- VALUE
- Optional keyword prefixing the sqlstate value.
- sqlstate_code
- Five-character string value that indicates a completion condition for the SQL statement. This is delimited by APOSTROPHE characters.
- SQLEXCEPTION
- A keyword identifier for generic conditions.
- SQLWARNING
- SQLWARNING indicates a generic completion condition.
- NOT FOUND
- NOT FOUND indicates a generic completion condition when no data is found.
- condition_name
- condition_name is a name that can be used to specify conditions for a handler to act on when the procedure definition specifies the condition name in a SIGNAL or RESIGNAL statement.
- handler_action_statement
- A single or compound statement that performs the handler action.