批量插入之分批事務插入

方案:分批事務插入 //DataModel 爲自定義的數據模型類,dataList 即傳入的即將要插入的數據集合; public int insertData(List dataList) throws ClassNotFoundException, SQLException { //設定每批、每次事務插入多少條數據; int itemNum = 1000; //開始時間
相關文章
相關標籤/搜索