Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 netezza 中构建一个相当大的表时,使用 JDBC 连接时出现以下错误:
org.netezza.error.NzSQLException: The update count exceeded Integer.MAX_VALUE.
该表确实已正确创建,但代码会引发异常。当我尝试运行相同的 SQL 时,nzsql我得到:
nzsql
INSERT 0 2395423258
即没有抛出异常。看来 JDBC 中存储记录数的变量不够大?
有没有其他人遇到过这个错误?你是怎么处理的?
修改您的连接字符串以包含ignoreUpdateCount=on为参数,然后重试。
ignoreUpdateCount=on