oracle触发器insert时触发数据插入另一个表中

高分请教一下,oracle触发器insert时触发数据插入另一个表中
最新回答
红杏没墙⌒

2024-09-17 00:47:42

CREATE OR REPLACE TRIGGER 触发器名称 AFTER INSERT ON a FOR EACH ROWBEGIN INSERT INTO b VALUES(:new.字段, :new.字段......);END;
煽情

2024-09-17 04:28:53

create or replace trigger trg_a after insert
ON a
for each row
begin
INSERT INTO b values(:NEW.ID,:NEW.NAME);
end;
醒着做梦≈

2024-09-17 01:33:05

create trigger tri after insert on afor statementbegininsert into b select * from a;end;这个前提是a表与b表的结构一致
傷丶如花美眷

2024-09-17 02:22:43

CREATE OR REPLACE TRIGGER TRG_aI AFTER
INSERT ON a FOR EACH ROW
BEGIN INSERT INTO b(x,x)VALUES(x,x)end;