互联网服务数据库

数据库触发器报错

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

参与11

4同行回答

李英杰李英杰数据库技术专家烁林软件
错误的解释:SQL0989N AFTER trigger "" attempted to modify a           row in table "" that was modified by an SQL           data  change statement within a FROM clause.  Ex...显示全部

错误的解释:

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
浏览1440

提问者

fantl
软件开发工程师北京国电南自亿通科技有限公司
擅长领域: 中间件前置系统服务器

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2016-08-01
  • 关注会员:4 人
  • 问题浏览:3222
  • 最近回答:2016-08-05
  • X社区推广