con.setAutoCommit(false);
Statement stmt=con.creatStatement();
stmt.addBatch(" intert into table values 11, 'aa' ");
stmt.addBatch(" intert into table values 11, 'aa' ");
stmt.addBatch(" intert into table values 11, 'aa' ");
int [] updateCounts=stmt.executeBatch();
阅读(2914) | 评论(1) | 转发(0) |