创建触发器时的错误:SQL1424N

hxtan 2004-02-07 05:31:19
表结构:
主表:create table test(id int not null primary key, f1 varchar(3000))
审计表:create table audit_test(id int not null primary key, f1 varchar(3000), operation char(1))

在主表上创建触发器:
create trigger audit_test_update
after update on test
referencing new as n_new old as n_old
for each row mode db2SQL
begin atomic
insert into audit_test(id, f1, operation) values(n_old.ID, n_old.F1, 'o');
insert into audit_test(id, f1, operation) values(n_new.ID, n_new.F1, 'n');
end

导致错误:
SQL1424N Too many references to transition variables and transition table columns or the row length for these references is too long. Reason code="2".

请问该问题如何解决?
...全文
105 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
comeon_data 2004-09-04
  • 打赏
  • 举报
回复
up
klbt 2004-08-25
  • 打赏
  • 举报
回复
帮你up

5,889

社区成员

发帖
与我相关
我的任务
社区描述
IBM DB2 是美国IBM公司开发的一套关系型数据库管理系统,它主要的运行环境为UNIX(包括IBM自家的AIX)、Linux、IBM i(旧称OS/400)、z/OS,以及Windows服务器版本
社区管理员
  • DB2
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧