[英]SQLCODE=-723 during insertions in DB2
I have a series of insert statements in my code. 我的代码中有一系列插入语句。 The table has few triggers to update last updated date and time.
该表具有少量触发器来更新上次更新的日期和时间。
Certain insertions are succeeding while other similar inserts into the table fails with DB2 SQL Error: SQLCODE=-723, SQLSTATE=09000, SQLERRMC=CMSDB.ITNPROD_AUDIT_AFTER_INSERT;-818;51003;, DRIVER=4.8.87 某些插入成功,而其他类似的插入表失败并出现DB2 SQL错误:SQLCODE = -723,SQLSTATE = 09000,SQLERRMC = CMSDB.ITNPROD_AUDIT_AFTER_INSERT; -818; 51003 ;, DRIVER = 4.8.87
What could be the problem. 可能是什么问题呢。 My worry is it works for certain records whereas fails for other.
我担心它对某些记录有效,而对其他记录无效。
Look up the errors in the DB2 Message reference. 在“ DB2消息”参考中查找错误。
The SQL0723N error ( here ) is telling us that an error occurred in the named trigger (in your case, the trigger is named CMSDB.ITNPROD_AUDIT_AFTER_INSERT). SQL0723N错误( 在此处 )告诉我们命名触发器中发生了错误(在您的情况下,该触发器名为CMSDB.ITNPROD_AUDIT_AFTER_INSERT)。
Furthermore, in the second part of the message, DB2 is telling us that the error that is occurring in the trigger is SQL0818N (SQLSTATE 51003) which is here . 此外,在消息的第二部分中,DB2告诉我们触发器中发生的错误是SQL0818N(SQLSTATE 51003),在此处 。
I don't really understand what 818 is saying, but it seems you may have some sort of timestamp problem with a package. 我不太了解818的意思,但似乎您的软件包可能存在某种时间戳问题。 Good luck.
祝好运。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.