Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT and Oracle
Message
De
11/05/2001 10:54:13
Michel Lalonde
Laboratoire Médical Biron
Lachine, Québec, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00505621
Message ID:
00506208
Vues:
12
>You could use SQLExec( nConnection, ‘BEGIN TRANSACTION’ )
>
>>I’m inserting into 3 tables in Oracle. Used to MS SQL server, I like to Begin transaction, End Transaction and Commit or Rollback using SPT.
>>The question is, how do I do that in Oracle?


No BEGIN and END TRANSACTION with Oracle.

The transaction begin with the first:
SELECT ... FOR UPDATE
UPDATE
DELETE
INSERT

and close with:
COMMIT
ROLLBACK



Ex.

SQLExec (1, "UPDATE XYZ SET COLNAME = 1") && New transaction
SQLExec (1, "DELETE ...") && Same transaction

SQLCommit (1) && or SQLExec (1, "Commit") && Close transaction
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform