Re: How to write a function in MYSQL to handle errors
Read about error handlers & SIGNAL in the manual ...
DECLARE error_condition_name CONDITION FOR
SQLSTATE [VALUE] sqlstate_value | mysql_error_code
DECLARE handler_type HANDLER FOR error_condition [,...] sql_statement
DECLARE EXIT HANDLER FOR ...
SIGNAL SQLSTATE [VALUE] sqlstate_value | condition_name
[SET condition_info_item = value [, condition_info_item = value] …]
RESIGNAL [SQLSTATE [VALUE] sqlstate_value | condition_name]
[SET condition_info_item = value [, condition_info_item2 = value2] …]
Subject
Written By
Posted
Re: How to write a function in MYSQL to handle errors
January 05, 2021 11:35AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.