You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where pk >= 1 and pk <=10 支持这种语句。
生成回滚sql伪代码
delete from table where pk >= 1 and pk <=10
->select * from table where pk >= 1 and pk <=10
foreach()
{
genBeforeImage;
genAfterImage;
insert(image);
}
XA 本身是可以保证数据的一致性的, 直接用普通的begin commit/rollback 就可以了。因为前置镜像和后置镜像以及 txc_lock可以在很大程度上保证资源不会被修改(也有可能通过命令行或者其他的发送绕过txc_lock检查的,这时候就可能数据不一致)。我觉得不需要数据库的XA。
The text was updated successfully, but these errors were encountered: