oracle回滚和提交

Vic*_*tor 1 oracle plsql oracle11g

在以下sql语句中:

BEGIN
update table1 set col1 = 'Y';
commit;
update table2 set col2 = 'Y';
rollback;
end;
/
Run Code Online (Sandbox Code Playgroud)

它会回滚更新还是仅更新#2?

vc *_* 74 5

只是#2

您可能对保存点感兴趣