在同一个表上建三个trigger
ALTER trigger q before update of id
order 1 on DBA.table
for each row
begin
insert into a(a,
b,c) values(\'update\',
oldnewname.id,newname.id)
end
ALTER trigger c before delete order 1 on
DBA.table
referencing old as oldname
for each row
begin
insert into a(a,
b,c) values(\'delete\',\'\',
oldname.id)
end
ALTER trigger b before insert order 1 on
DBA.table
referencing new as newname
for each row
begin
insert into a(a,
b,c) values(\'insert\',
newname.id,\'\')
end
end
执行结果只有两条
a b c
delete 123
insert 321
为什么update 的不执行?太不公平了