mysql 支持事务嵌套,但遇到第begin|start transaction 就会commit. 所以里层事务commit,外层rollback不了任何东西. 解决方案:不使用嵌套. 转载于:https://www.cnblogs.com/imjamin/p/9231315.html