我正在通过jcc执行SQL查询来运行报告.当我打开程序的错误日志文件并检查SQL查询时,一切似乎都很好(没有额外或缺少括号,逗号等,语法很好)但是当我执行时我收到此错误:
[Report.execute()] DB2 SQL错误:SQLCODE = -104,SQLSTATE = 42601,SQLERRMC = ,; ATE IN(1,2,3,10,1);, DRIVER = 4.12.55
当我研究SQLCODE时,我发现它意味着查询中存在非法符号.我能找到什么来找到这个非法的符号?
这是查询

很抱歉这个小字体,但如果你缩放200%左右,你可以更好地看到查询.
非常感谢 :)
我收到以下错误:
com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-805, SQLSTATE=51002, SQLERRMC=NULLID.SYSLH203 0X5359534C564C3031, DRIVER=3.58.81
Run Code Online (Sandbox Code Playgroud)
在一段时间后执行申请.在网上没有得到任何富有成效的答案.
再会,
org.springframework.dao.DataIntegrityViolationException: could not insert: [com.entity.payment.BPaymentItem]; SQL [insert into sc.PHistoryItem (amount, beneficiaryAccNo, beneficiaryBankCode, beneficiaryBankName, beneficiaryRef2, billCode, branchId, chargeTo, cibRefNo, cifId, collectionAccountNo, companyId, companyName, createdHostDateTime, currentStatus, customerCategoryCharges, customerCategoryCode, customerCategoryId, customerCategoryName, description, errorCode, errorMessage, fromAccountName, fromAccountNo, fromAccountType, fromFavourite, gst, gstAmount, gstInclusive, gstName, gstRate, gstRefNo, gstTaxCode, hostRefNo, nbpsBillerCode, nbpsBillerName, nbpsReferenceNo, nbpsRrn2, nbpsRtn, nbpsSystemReferenceNo, notifyRetryCount, paymentDate, paymentHistoryId, processDate, promotionCharges, promotionCode, promotionId, promotionName, ref1, ref2, reference, rejectReason, remittanceStatus, remittanceTo, rfi, rrnInfo, rtTrxCode, rtnStatus, serviceCharge, serviceChargeCode, serviceChargeGLAcct, serviceChargeId, serviceChargeName, servicePackageCode, servicePackageId, servicePackageName, serviceType, showTerm, smsCharges, smsGst, …Run Code Online (Sandbox Code Playgroud)