1
我有一個觸發器,它看起來象下面這樣:如何將新老對象引用到存儲過程中?
create trigger theTrig
insert on table_A referencing new as n
for each row(
execute procedure proc_A();
);
我可以知道我可以通過新/舊參考對象爲存儲過程的觸發器內?
我有一個觸發器,它看起來象下面這樣:如何將新老對象引用到存儲過程中?
create trigger theTrig
insert on table_A referencing new as n
for each row(
execute procedure proc_A();
);
我可以知道我可以通過新/舊參考對象爲存儲過程的觸發器內?
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老' 和Informix是很高興的同義反復規範效勞。