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協議
相關文章
相關標籤/搜索