日期:2014-05-17 浏览次数:20922 次
Create Or Replace Trigger test
Before INSERT ON T_A
for each row
when (Old.CJ='合格')
DECLARE
begin
INSERT INTO T_B(ID,LSH,CJ) VALUES(:NEW.ID,:NEW.LSH,:NEW.CJ);
end test;
Create Or Replace Trigger tests
Before INSERT ON T_A
for each row
begin
if :NEW.CJ ='合格' then
INSERT INTO T_B(ID,LSH,CJ) VALUES(:NEW.ID,:NEW.LSH,:NEW.CJ);
end if;
end tests;