SQL语句的提交,请指教?谢谢!
Leony 2002-01-23 11:16:41 我有几条SQL语句:
update table1 set ......... where ..............using sqlca;
update table2 set ......... where ..............using sqlca;
delete table3 set ..........where .............using sqlca;
if sqlca.sqlnrows>0 then
commit using sqlca;
else
rollback using sqlca;
end if
这样能做到只有同时做成功地update 了table1 和 table2,再删除table3吗?
应该怎么做呢?谢谢!