Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Localized commit
Message
De
29/11/2001 06:20:58
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
À
29/11/2001 06:08:11
Information générale
Forum:
Oracle
Catégorie:
PL/SQL
Divers
Thread ID:
00586372
Message ID:
00587385
Vues:
30
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform