Forums Register Login

Inserts using addBatch() and executeBatch()

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
It's a tiny ad only because the water is so cold.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1593 times.
Similar Threads
executing an INSERT statement using a PreparedStatement
Can I use a single statement while autocommit is false.
multiple prepared statemnets using executeBatch
how to do multiple insert
Inserting Batch Statements
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:53:57.