Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is rollback required ?
Message
De
24/08/2005 09:30:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Is rollback required ?
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Oracle
Divers
Thread ID:
01043285
Message ID:
01043285
Vues:
52
Hello all

Simple question :

If i'm accessing mutilple tables from Oracle and if my inserts are within a transaction and if i want to roll back all the inserts do i need to rollback from each invididual tables are one rollback will revert all the data

Eg

...Orcle Connection..

Begin Transcation

do while not eof()

sele a
Insert ...
a=tableupdate(.t.)

sele b
Insert ...
b=tableupdate(.t.)

if a and b
end trans
else
rollback
endif

In this code will rollback revert both a and b or only b.

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform