Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

differentbetween batchUpdating and transaction

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the differentbetween batchUpdating and transaction?
both execute the one or more sql statements
 
Jan Cumps
Bartender
Posts: 2588
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rough explanation:
Batch update: you send a set of updates to the server in group in stead of one by one.

Transaction: a set of queries that logically belong together. The changes are only visible to other users when you commit the transaction. They are all reverted to the situation before the transaction started if you rollback.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic