Use of Commit after DML statement [message #2756] |
Mon, 12 August 2002 04:10 |
Mark Grimshaw
Messages: 73 Registered: June 2002
|
Member |
|
|
Hello,
Am I correct in thinking that after a DML insert or delete Sql query on a table I need to use COMMIT for another session to see an up to date picture of the database.
Thanks
Mark Grimshaw
|
|
|
|
|
Re: Use of Commit after DML statement [message #2791 is a reply to message #2767] |
Tue, 13 August 2002 12:02 |
Todd Barry
Messages: 4819 Registered: August 2001
|
Senior Member |
|
|
You need to explicitly rollback because there may be other DML statements already processed in your transaction. Depending on the circumstances, you may either want to rollback the entire transaction, or ignore the insert error and continue.
|
|
|