Posted on
2012-06-25 16:31HI END
阅读(369)
评论(0)
编辑收藏举报
CREATE PROCEDURE p1(idd int) BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION,SQLWARNING,NOT FOUND BEGIN ROLLBACK; END; SET @comId = idd ; START TRANSACTION; DELETE FROM tb_aa WHERE id=@comId; DELETE FROM tb_bb WHERE id=@comId; COMMIT; END