PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5
- 13.6.7.1 DECLARE ... CONDITION Statement
- 13.6.7.2 DECLARE ... HANDLER Statement
- 13.6.7.3 GET DIAGNOSTICS Statement
- 13.6.7.4 RESIGNAL Statement
- 13.6.7.5 SIGNAL Statement
- 13.6.7.6 Scope Rules for Handlers
- 13.6.7.7 The MySQL Diagnostics Area
- 13.6.7.8 Condition Handling and OUT or INOUT Parameters
- 13.6.7.9 Restrictions on Condition Handling
Conditions may arise during stored program execution that require special handling, such as exiting the current program block or continuing execution. Handlers can be defined for general conditions such as warnings or exceptions, or for specific conditions such as a particular error code. Specific conditions can be assigned names and referred to that way in handlers.
To name a condition, use theDECLARE ... CONDITION statement. To declare a handler, use theDECLARE ... HANDLER statement. SeeSection 13.6.7.1, “DECLARE ... CONDITION Statement”, andSection 13.6.7.2, “DECLARE ... HANDLER Statement”. For information about how the server chooses handlers when a condition occurs, seeSection 13.6.7.6, “Scope Rules for Handlers”.
To raise a condition, use theSIGNAL statement. To modify condition information within a condition handler, useRESIGNAL. SeeSection 13.6.7.1, “DECLARE ... CONDITION Statement”, andSection 13.6.7.2, “DECLARE ... HANDLER Statement”.
To retrieve information from the diagnostics area, use theGET DIAGNOSTICS statement (seeSection 13.6.7.3, “GET DIAGNOSTICS Statement”). For information about the diagnostics area, seeSection 13.6.7.7, “The MySQL Diagnostics Area”.
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5