本文介绍了PreparedStatement不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我必须在表格中插入多行。我使用addBatch和executeBatch插入行
。
每行有5列。每行四列包含
除最后一列之外的相同值。
所以我使用for循环来设置最后一列值。
我正在使用JDK1.5,DB2和WAS6.1。我的连接正常,setAutoCommit设置为false。
Hi
I have to insert multiple rows into a Table. I am inserting rows
using addBatch and executeBatch.
Each row has 5 columns. Four columns of each row contain
same value except last column.
So I am using for loop to set the last column value.
I am using JDK1.5, DB2 and WAS6.1. My connection is OK and setAutoCommit sets as false.
展开 | 选择 | Wrap | 行号
推荐答案
这篇关于PreparedStatement不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!