數據庫批量插入

1:使用addBatch()加入一條要執行的sql命令以及executeBatch()執行所有命令兩個方法完成面試 /** * 插入1萬條約耗時30s(不使用事務) * 1W條數據700ms * 10W條數據5S * @param pstm * @throws SQLException */ public static void insert1(Connection co
相關文章
相關標籤/搜索