在线等答案,急急
while ((misRegister = bbr.readLine()) != null) {
statement = null;
sqlval = getMisDate(proFileList, misRegister);
sql = "insert into mis_trans(" + sqlname + ") values("
+ sqlvalue + ")";
statement = conn.prepareStatement(sql);
statement.addBatch();
}
statement.executeBatch();
读取文本为12500条记录,报内存溢出,java.lang.OutOfMemoryError,表中插入了11750条记录,请问是什么原因呢,数据库是mysql