[UPDATE AR.BATCH_JOB_CONFIG_DTLS SET KEY_NM = ?, KEY_VAL = ?, KEY_DESC = ?, LAST_UPDT_USER_CD = ?, LAST_UPDT_DTM = CURRENT TIMESTAMP WHERE BATCH_JOB_CONFIG_DTLS_ID = ? && BATCH_JOB_CONFIG_ID = ? ];
nested exception is com.ibm.db2.jcc.am.SqlSyntaxErrorException: [jcc][10145][10844][3.69.66] Invalid parameter 7: Parameter index is out of range. ERRORCODE=-4461, SQLSTATE=42815
BATCH_JOB_CONFIG_DTLS_ID
是PK,而BATCH_JOB_CONFIG_ID
是FK。两者均为Long
类型。你看到这个问题了吗?
答案 0 :(得分:0)
问题出在WHERE子句后面的'&&'关键字。它应该是“ AND”。