Using Batches in JDBC - II
10 August 2008Do read the first part of this post to get the right context.
In the example presented in the example. things look simple. I used addBatch(…) method of Statement object to create the batch. A batch can have as many as you like statements. Once the batch is ready, executeBatch() method is use to execute it. The method executeBatch() return int array which contains update count of each command. For example, at zero index, you will find the no of records updated by first update statement in the batch and so on.
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Using Batches in JDBC - II