Mysql的XA事务简单使用

xa事务操作 #开启xa事务wsh xa start ‘wsh’; #执行insert语句 insert into name(id,name) values(1,‘wsh’); #这里必须是end 固定的操作方式 xa end ‘wsh’; #提交会有返回值 决定后面的commit和rollback操作 xa prepare ‘wsh’; #提交xa事务 xa commit ‘wsh’; XA协议
相关文章
相关标签/搜索