gpt4 book ai didi

java.sql.SQLException : result row count is large threshold

转载 作者:行者123 更新时间:2023-11-29 18:37:50 25 4
gpt4 key购买 nike

我正在使用java和oracle。

sqlException

public List<Map<String, String>> TWrongData()throws Exception{
Statement mStmt=null;
ResultSet rs = null;
try{
mStmt = this.conn.createStatement();
StringBuffer sbSql= new StringBuffer();
sbSql.append( " SELECT NB,DA,S,T " );
sbSql.append( " FROM YS_DBA01_QX WHERE T is null AND S<>0 " );
rs=mStmt.executeQuery(sbSql.toString());
ArrayList<Map<String, String>> list = new ArrayList<Map<String, String>>();
while(rs.next()){
Map<String, String> map = new HashMap<String, String>();
map.put("NB",rs.getString("NB"));
String RQ=CommonUtils.DateFormat(rs.getDate("DA"));
map.put("DA",DA);
list.add(map);
}
return list;
}catch(Exception e) {
e.printStackTrace();
}finally {
JDBResourceKit.release(rs);
JDBResourceKit.release(mStmt);
}
return null;
<小时/>
 SELECT JH,RQ,CYFS,PL  FROM YS_DBA01_QX WHERE PL is null AND SCSJ<>0 execute time:31
java.sql.SQLException: result row count is large threshold[100000] sql: SELECT JH,RQ,CYFS,PL FROM YS_DBA01_QX WHERE PL is null AND SCSJ<>0
at com.efounder.sql.EAIResultSet.next(EAIResultSet.java:550)
at com.zyof.server.xypc.djj.JPLService.PLWrongData(JPLService.java:67)

我在网上找了好久。但没有用。请提供帮助或尝试提供一些如何实现这一目标的想法。

提前致谢。

最佳答案

您可能拥有超过 100000 条记录。尝试设置一些限制,例如:

SELECT * FROM XXX LIMIT 5000

关于java.sql.SQLException : result row count is large threshold,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45139065/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com