create or replace trigger test_trigger
after insert on test
for each row
begin
if :new.data_type='1' then
INSERT INTO testb SELECT * FROM testa WHERE "ID" = :new.data_id;
end if;
end test_trigger;
oracle触发器
最新推荐文章于 2023-05-07 16:13:12 发布
create or replace trigger test_trigger
after insert on test
for each row
begin
if :new.data_type='1' then
INSERT INTO testb SELECT * FROM testa WHERE "ID" = :new.data_id;
end if;
end test_trigger;