我使用PreparedStatement具有2000多个参数标记构建大型数据库调用.
我得到这个错误
Caused by: java.sql.SQLException: Prepared or callable statement has more than 2000 parameter markers.
at net.sourceforge.jtds.jdbc.SQLParser.parse(SQLParser.java:1139)
at net.sourceforge.jtds.jdbc.SQLParser.parse(SQLParser.java:156)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.<init>(JtdsPreparedStatement.java:107)
Caused by: java.sql.SQLException: Prepared or callable statement has more than 2000 parameter markers.
Run Code Online (Sandbox Code Playgroud)
我尝试搜索API文档和谷歌但无法找到如何配置它.
有谁知道是否有可能达到这个限制?我知道这将是一个缓慢的数据库调用,但现在这很好.
从长远来看,这也会给我带来任何问题,我最好分批运行吗?