标签:art creat roc commit nsa tin ror cti start
create procedure test(in a int) BEGIN DECLARE t_error INTEGER DEFAULT 0; DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET t_error=1;-- 异常时设置为1 START TRANSACTION; INSERT into aaaa VALUES(2,3); INSERT into aaaaa VALUES(2,3); IF t_error = 1 THEN ROLLBACK; ELSE COMMIT; END IF; END
标签:art creat roc commit nsa tin ror cti start
原文地址:http://www.cnblogs.com/Yiran583/p/7125455.html