In this section we will learn how use JDBC add batch to make JDBC batch update. The JDBC batch update is used to execute a group of updates at one go. The JDBC batch update is different from executeUpdate(), as the executeUpdate() will execute one query at a time.
In case of JDBC Batch update you can include many updates in the same batch of updates. The single batch of updates is also know as batchable statements.
You can use the following functions for creating, executing, and removing a batch of SQL updates:
Things to remember in mind while using JDBC batch updates:
JDBC Batch Update example
Read the JDBC Batch Update Example code. This tutorial will show you the complete code.
Posted on: April 3, 2006 If you enjoyed this post then why not add us on Google+? Add us to your Circles