ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories >> Software >> Java-Related >> Java-J2EE >> Core-Java
 
 
 
Question
What is the purpose of setAutoCommit() ?
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
Answer
If AutoCommit is off, then any update or insert operation
perforned on database will not be reflected just after the 
query is executed.Though the operation has been 
successfully completed.
 We will have to commit the transaction manually, to view 
the incurred changes.
  This also keeps user on the safer side, if some 
undesirable row has been inserted,updated or deleted in the 
database then it can be rollback.

While if the AutoCommit is on any update,insert or delete 
are at once reflected onto the database.
 
0
Shahnawaz Sheikh
 
View All Answers
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com