Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT and Oracle
Message
From
11/05/2001 10:54:13
Michel Lalonde
Laboratoire Médical Biron
Lachine, Quebec, Canada
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00505621
Message ID:
00506208
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform