Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Localized commit
Message
From
29/11/2001 06:20:58
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
To
29/11/2001 06:08:11
General information
Forum:
Oracle
Category:
PL/SQL
Miscellaneous
Thread ID:
00586372
Message ID:
00587385
Views:
25
Hi,

Did I misunderstand Mr. Galia question ?
if he want to do something like:
insert into test1 ...
insert into test2...
update auditlog ....
insert into test3
...
rollback;
...
if he want to rollback all INSERT statements and just keep the UPDATE statement committed, then it could not be done by savepoint. Am I right ?

Thanks, Wilfred


>Yes you can with savepoints...
>
>best illustrated with an example..
>
>
>savepoint statement1;
>insert into mytable values(1);
>if error then rollback to statement1;
>
>savepoint statement2;
>insert into mytable values(-1);
>if error then rollback to statement2;
>
>
>
>hth
Previous
Reply
Map
View

Click here to load this message in the networking platform