허당 레몬도리
MySQL Error Handling in Stored Procedures
가. 언어유형/SQL Query 2018. 12. 12. 16:59

출처 : http://www.mysqltutorial.org/mysql-error-handling-in-stored-procedures/ Summary: in this tutorial, you will learn how to use MySQL handler to handle exceptions or errors encountered in stored procedures.When an error occurs inside a stored procedure, it is important to handle it appropriately, such as continuing or exiting the current code block’s execution, and issuing a meaningful error m..

[MySQL / Stored Procedure] 에러 핸들링 Error Logging
가. 언어유형/SQL Query 2018. 12. 12. 16:56

출처: http://purumae.tistory.com/199 [MySQL / Stored Procedure] 에러 핸들링 시리즈 아래와 같은 테이블을 만들고, Stored Procedure 실행 중에 SQL Exception 이 발생했을 때, 디버깅에 필요한 단서를 저장합니다.12345678910111213CREATE TABLE `error_log` ( `error_log_id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '에러 로그 ID', `proc_name` VARCHAR(100) NOT NULL COMMENT '프로시저 이름', `proc_step` TINYINT(3) UNSIGNED NOT NULL COMMENT '프로시저 내에서 에러가 발생..