您可以在SQL过程中声明一个或多个条件处理程序。
You can declare one or more condition handlers in your SQL procedure.
条件处理程序确定在出现一个条件时SQL过程的行为。
Condition handlers determine the behavior of your SQL procedure when a condition occurs. A condition might be one of the following.
对于表3左侧列的DB 2示例,如果某条sql语句失败并生成一个错误,那么控制将被传递给条件处理程序。
In the case of the DB2 example in the left column of Table 3, if a particular SQL statement fails and generates an error, control is passed to the condition handler.
应用推荐