Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is neccesary to use commit()...when you use stmt.executeUpdate(sentence);?

843854Apr 4 2003 — edited Apr 4 2003
Is neccesary to use commit()..... when you use

stmt.executeUpdate(sentence);

and the sentence is by example:

sentence = "delete from table_X where ELEMENT1 = 'hi'"; ????

This is because...i did a servlet in which i send a sentence (the sentence could be insert or delete).....and apparently it is working very well....i can see that the rows are added or removed in the DB table...but i am a little confused...because in a paper says "modifications in tuples are temporarily stored in the db system. They become permanent only after the statement commit has been issued"

and i am not calling commit in my servlet.....

Thanks in advance,
Mary

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2003
Added on Apr 4 2003
1 comment
372 views