HOW CAN I CAPTURE DE ERROR
Hi everybody!
I have the following procedure:
CREATE PROCEDURE `vivianadv`.`ins_cli` (IN v_cpf CHAR(11) , IN v_estado_civil CHAR(1), OUT v_retorno INT)
BEGIN
INSERT INTO `vivianadv`.`cli` (cpf, estado_civil) VALUES (v_cpf, v_estado_civil);
END
Supose, for any reason, the INSERT statment returned a error.
How can I capture the error code or the success code of INSERT statement?
Can I set de error code or success code to my param v_retorno?
Thank's a lot!!!
Subject
Views
Written By
Posted
HOW CAN I CAPTURE DE ERROR
3761
April 05, 2006 08:06AM
2809
April 05, 2006 05:13PM
2308
April 06, 2006 06:33AM
2227
April 06, 2006 08:37AM
9772
April 06, 2006 02:37PM
12846
April 06, 2006 02:41PM
3087
April 24, 2006 05:49AM
2227
April 24, 2006 08:27AM
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.