Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: transactions over multi-table insert
commit;
insert into table1...;
insert into table2....;
If you get an error then:
rollback;
if not then commit;
Transactions are not table specific.
Jim
"christopher lambert" <cjlambert_at_llnl.gov> wrote in message
news:1932d1c8.0108281524.6eebe992_at_posting.google.com...
> how can I perform a transaction-like operation over several inserts
> operating on different tables? (e.g. if I've inserted to table1 and
> then an insert to table2 fails, I want to rollback table1)
Received on Tue Aug 28 2001 - 18:58:12 CDT