这是我的程序:
CREATE DEFINER=`root`@`localhost` PROCEDURE `user_active_account`(IN i_email VARCHAR(255),
IN i_active_code VARCHAR(255))
BEGIN
START TRANSACTION;
DELETE FROM activeCodes WHERE active_code = i_active_code;
UPDATE users SET status = 1 WHERE email = i_email;
COMMIT;
END
我这里有个问题,我想执行DELETE FROM activeCodes WHERE active_code = i_active_code
成功,如果这行不能执行成功(比如不能删除任何东西),UPDATE users SET status = 1 WHERE email = i_email
就不能执行。我怎样才能关注这种行为?谢谢。