The INSERT error transfers control to the exit handler for that SQLSTATE code.
INSERT错误将控制转移到 SQLSTATE代码的退出处理程序。
This routine can be called as a part of the application's exit handler or clean up routines.
应用程序的退出处理函数或清理例程可以调用这个例程。
When the INSERT statement fails with the error code specified in the DECLARE exit handler statement, control passes to the handler, and the procedure is exited.
当insert语句失败并且错误代码在DECLAREEXIT handler语句中指定,那么控制将传递到处理程序,而过程将退出。
Listing 13 demonstrates how a specific error can transfer control to the exit handler where a user-defined error message is returned depending on the value of the SQLCODE.
清单13展示了一个特定的错误如何将控制转移给退出处理程序,其中根据SQLCODE的值返回用户定义的错误消息。
Listing 13 demonstrates how a specific error can transfer control to the exit handler where a user-defined error message is returned depending on the value of the SQLCODE.
清单13展示了一个特定的错误如何将控制转移给退出处理程序,其中根据SQLCODE的值返回用户定义的错误消息。
应用推荐