On Aug 31, 7:31*am, Yonghang Wang <wyh... (AT) gmail (DOT) com> wrote:
Quote:
yes, thanks. it's interesting how much time it may save by prepared stmt.for this kind of workload, as the real executing part is only a INSERT.
just curious, is there anybody from IBM lab can show us whether it's possible to "declare cursor on JDBC ResultSet" or c/c++ alternatives. |
I'm not from the IBM lab but I can tell you that it's not possible

In CLI (but not in JDBC) you can use column-wise array input:
http://publib.boulder.ibm.com/infoce.../t0007268.html
If you're able to save the contents of your ResultSet to some csv file
on the db2 server, you can load it with IMPORT/LOAD utilities via
ADMIN_CMD routine.