互联网服务数据库

数据库触发器报错

数据库做了个迁移,现在after类型触发器有问题,报-989的错误显示全部

数据库做了个迁移,现在after类型触发器有问题,报-989的错误

收起
参与11

查看其它 3 个回答李英杰的回答

李英杰李英杰数据库技术专家烁林软件

错误的解释:

SQL0989N AFTER trigger "" attempted to modify a

          row in table "" that was modified by an SQL

          data  change statement within a FROM clause.  

Explanation:

An SQL data change statement was specified in the FROM clause,

but the underlying target base table of the SQL data change

statement has an AFTER trigger defined which modifies the same

table. This is disallowed.  

The statement cannot be processed.  

User Response:

Avoid using the SQL data change statement within a FROM clause,

or change  the trigger so that it does not modify the table that

is the target of the SQL data change statement.  

sqlcode :  -0989

sqlstate :  560C3

系统集成 · 2016-08-01
浏览1439

回答者

李英杰
数据库技术专家烁林软件

李英杰 最近回答过的问题

回答状态

  • 发布时间:2016-08-01
  • 关注会员:4 人
  • 回答浏览:1439
  • X社区推广