2015-05-06 33 views

回答

0

标准回滚不适用,因为您需要语句1的结果并将其用于第2条语句。你需要在你的应用程序以外的SQL中执行此操作。

对于“人工回退”,你需要缓存的原始值由操作

的流程将在随后的行工作影响的行(S):

select * from table where the_Where; //statement 1 

update db1.table set updates where the_Where; 

--if success-- 
update db2.table set updates where another_Where; 

--if failure-- 
update table set (data from statement 1) where the_Where; 
相关问题