May 2020
Beginner
564 pages
14h 9m
English
In order to handle errors, you can use special error handling. The syntax for that is as follows:
DECLARE action HANDLER FOR condition statement;
When a condition matches the condition specified in the handler, MySQL will execute the statement specified in the handler and either continue or exit based on the action specified. This statement can be a single statement or multiple statements surrounded by BEGIN and END.
The action specified in the handler can be one of two values:
The condition specified in the handler can be one of the following:
Read now
Unlock full access