JDBC

  

批量插入注意事项:

新建连接时加一句

conn.setAutoCommit(假);

每行数据赋值完,加一句

stat.addBatch ();

最后

stat.executeBatch ();   conn.commit ();

最后记得自由释放资源

JDBC