1 ps = con.prepareStatement(sql);2 long start = System.currentTimeMillis();3 for (int i = 0; i < 1000; i++) {4 ps.setString(1, "qq"+i);5 ps.addBatch();6 }7 ps.executeBatch();
本文共 315 字,大约阅读时间需要 1 分钟。
1 ps = con.prepareStatement(sql);2 long start = System.currentTimeMillis();3 for (int i = 0; i < 1000; i++) {4 ps.setString(1, "qq"+i);5 ps.addBatch();6 }7 ps.executeBatch();
转载于:https://www.cnblogs.com/Ysuwade/p/7455069.html