DECLARE t_error INTEGER DEFAULT ;
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET t_error=;
START TRANSACTION;
7 delete from client;
IF t_error = THEN
ROLLBACK;
ELSE
COMMIT;
END IF;
事务关键代码。
调用存储过程:Call 存储过程名字;
2022-10-27 10:14:07
DECLARE t_error INTEGER DEFAULT ;
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET t_error=;
START TRANSACTION;
7 delete from client;
IF t_error = THEN
ROLLBACK;
ELSE
COMMIT;
END IF;
事务关键代码。
调用存储过程:Call 存储过程名字;
下一篇:判断https