Condition Handler Types - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
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 run 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).