473,394 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Commit transaction

DP
Is there any command exists as "commit transaction" ?

begin transaction
< DML1 stmts >
begin transaction
< DML2 stmts >
rollback transaction
commit transaction

which set of DML will be commites to the database or none ?
Jul 19 '05 #1
3 11592
"DP" <di****@postmark.net> wrote in message
news:57**************************@posting.google.c om...
Is there any command exists as "commit transaction" ?

begin transaction
< DML1 stmts >
begin transaction
< DML2 stmts >
rollback transaction
commit transaction

which set of DML will be commites to the database or none ?

Transactions start or end with commit or rollback. eg
commit;
dml;
dml;
dml;
commit;

or
commit;
dml;
dml;
....
rollback;

AFAIK in Oracle anything after the commit is ignored as a label. eg commit
mytrans;
Jim
Jul 19 '05 #2
Take a look at savepoints.

ETA
"Jim Kennedy" <kennedy-down_with_spammers@no_spam.comc
ast.net> wrote in message news:<ma*******************@rwcrnsc52.ops.asp.att. net>...
"DP" <di****@postmark.net> wrote in message
news:57**************************@posting.google.c om...
Is there any command exists as "commit transaction" ?

begin transaction
< DML1 stmts >
begin transaction
< DML2 stmts >
rollback transaction
commit transaction

which set of DML will be commites to the database or none ?

Transactions start or end with commit or rollback. eg
commit;
dml;
dml;
dml;
commit;

or
commit;
dml;
dml;
...
rollback;

AFAIK in Oracle anything after the commit is ignored as a label. eg commit
mytrans;
Jim

Jul 19 '05 #3
at your case - none,
"DP" <di****@postmark.net> wrote in message
news:57**************************@posting.google.c om...
Is there any command exists as "commit transaction" ?

begin transaction
< DML1 stmts >
begin transaction
< DML2 stmts >
rollback transaction
commit transaction

which set of DML will be commites to the database or none ?

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matthew Houseman | last post by:
All, What's the accepted best practice for persisting data? Commit by the PL/SQL or commit by the caller (C#, Java, VB, etc.). I believe that if the caller starts a transaction and calls...
11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
3
by: Alberto | last post by:
I've a complex stored procedure, that makes a lot of insert, update, delete and so on. I would like to make some commits durint this sp, but of course they are not "real" commit because who call...
3
by: Mark | last post by:
If a java applicaiton using the type 4 driver calls a DB2 stored procedure, does the stored procedure need to do its own commit when updates are completed? If the stored procedure does a commit or...
3
by: Peter Kirk | last post by:
Hi there when working with database connections in C# is there a concept of "auto commit"? For instance, if I obtain a database connection in java I can set the auto-commit state to true or...
1
by: Jason Huang | last post by:
Hi, I am just wondering how do we test the transaction's Commit and Rollback? How do we simulate a situation to let the transaction fail then Rollback? Thanks for help. Jason
7
by: fyi85 | last post by:
I have 8.1.5 on Windows 2003, when I do from CLP with auto commit off: db2 update table set column=something and then db2 terminate and then db2 connect to db db2 select updated column from...
1
by: Scott Cupstid | last post by:
We are working on a VB.NET application using SQLClient command objects to post data to the underlying SQL Server 2000 database. The application is deployed in a multi-user environment with no more...
3
by: DP | last post by:
Is there any command exists as "commit transaction" ? begin transaction < DML1 stmts > begin transaction < DML2 stmts > rollback transaction commit transaction which set of DML will be...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.