象这样:
Statement stmt = con.createStatement();
stmt.addBatch("INSERT INTO tabName (...) values(...);");
stmt.addBatch("INSERT INTO tabName (...) values(...);");
stmt.addBatch("INSERT INTO tabName (...) values(...);");
// 提交一批要执行的更新命令
int[] updateCounts = stmt.executeBatch();