DECLARE CONDITION
Define named error conditions. This statement associates a name with a specific SQLSTATE or MariaDB error code for easier handling in stored programs.
Syntax
DECLARE condition_name CONDITION FOR condition_value
condition_value:
SQLSTATE [VALUE] sqlstate_value
| mysql_error_codeDescription
ERROR 1407 (42000): Bad SQLSTATE: '00000'Last updated
Was this helpful?

