This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Inserts using addBatch() and executeBatch() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Inserts using addBatch() and executeBatch()" Watch "Inserts using addBatch() and executeBatch()" New topic

Inserts using addBatch() and executeBatch()

Donna Reschke

Joined: Jul 05, 2001
Posts: 23
I've been using the stmt.addBatch() and stmt.executeBatch() statements to do multiple inserts in a table. We've recently converted our driver from Eda to DB2 and done upgrades to DB2. Since then, the stmt.addBatch() and stmt.executeBatch()statements are not working and give me Null Pointer Exceptions. Does anyone know anything about this or do you know how to get around it? I'd appreciate any input. Thanks
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Thanks for re-registering, Donna. We really do appreciate it.
Anyway, this is much more likely to get an answer in the JDBC forum, which is all about database access, so I've moved it for you.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Inserts using addBatch() and executeBatch()
Similar Threads
how to do multiple insert
Inserting Batch Statements
executing an INSERT statement using a PreparedStatement
Can I use a single statement while autocommit is false.
multiple prepared statemnets using executeBatch