------------------------------------------------------------------------------------------------------
postgresql conn.setAutoCommit(false); 默认是一次获取所有行
stmt.setFetchSize(x);
oracle stmt.setFetchSize(x); 默认是一次仅获取10行
stmt = conn4Select.createStatement(sqlServerResultSet.TYPE_SS_SERVER_CURSOR_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY);
rs.setFetchSize(copyBatch);
参考资料:
oracle:http://docs.oracle.com/cd/A97630_01/java.920/a96654/resltset.htm#1023642
ms sqlserver:https://technet.microsoft.com/en-us/library/aa342344(SQL.90).aspx
https://technet.microsoft.com/en-us/library/ms378124(v=sql.90).aspx
原文链接:https://www.f2er.com/postgresql/195253.html