1

我有一个如下所示的触发器:

create trigger theTrig
insert on table_A referencing new as n
for each row(
   execute procedure proc_A();
);

我可以知道如何将新/旧参考对象传递到触发器内的存储过程中吗?

4

1 回答 1

1
CREATE TRIGGER theTrig
    INSERT ON table_A REFERENCING NEW AS n
    FOR EACH ROW
    (
        EXECUTE PROCEDURE proc_A(n.col2, n.col3, n.col5, n.col7, n.col11);
    );

我通常写 'REFERENCING NEW AS NEW' 和/或 'REFERENCING OLD AS OLD' 并且 Informix 很乐意遵守重言式规范。

于 2012-04-25T14:12:59.493 回答