S
sxbug
Unregistered / Unconfirmed
GUEST, unregistred user!
在oracle 9的触发器主体里面我写的语句如下:
begin
update JAMIS.GETCOMMCOST
set
( COMUNICATECOST, EMPNO_INNER, FAXCOST, PHONEHOMECOST,PHONEHOMECOST1,PHONEHOMECOST2,
PHONEMOBILECOST,PHONEMOBILECOST1, PHONEMOBILECOST2, PHONEMOBILECOST3,PHONEWORKCOST,
E_MAIL, FAX, PHONE_HOME, PHONE_HOME1,PHONE_HOME2,PHONE_MOBILE,PHONE_MOBILE1,
PHONE_MOBILE2, PHONE_MOBILE3, PHONE_WORK, USERNAME )
=
NEW.COMUNICATECOST,:NEW.EMPNO_INNER,:NEW.FAXCOST,:NEW.PHONEHOMECOST,:NEW.PHONEHOMECOST1,:NEW.PHONEHOMECOST2,
:NEW.PHONEMOBILECOST,:NEW.PHONEMOBILECOST1, :NEW.PHONEMOBILECOST2, :NEW.PHONEMOBILECOST3, :NEW.PHONEWORKCOST,
:NEW.E_MAIL,:NEW.FAX,:NEW.PHONE_HOME, :NEW.PHONE_HOME1, :NEW.PHONE_HOME2, :NEW.PHONE_MOBILE,:NEW.PHONE_MOBILE1,
:NEW.PHONE_MOBILE2, :NEW.PHONE_MOBILE3,:NEW.PHONE_WORK, :NEW.USERNAME )
where
PAY_DATE = :OLD.PAY_DATE AND
EMPNO = :OLD.EMPNO;
end;
谢谢
begin
update JAMIS.GETCOMMCOST
set
( COMUNICATECOST, EMPNO_INNER, FAXCOST, PHONEHOMECOST,PHONEHOMECOST1,PHONEHOMECOST2,
PHONEMOBILECOST,PHONEMOBILECOST1, PHONEMOBILECOST2, PHONEMOBILECOST3,PHONEWORKCOST,
E_MAIL, FAX, PHONE_HOME, PHONE_HOME1,PHONE_HOME2,PHONE_MOBILE,PHONE_MOBILE1,
PHONE_MOBILE2, PHONE_MOBILE3, PHONE_WORK, USERNAME )
=
NEW.COMUNICATECOST,:NEW.EMPNO_INNER,:NEW.FAXCOST,:NEW.PHONEHOMECOST,:NEW.PHONEHOMECOST1,:NEW.PHONEHOMECOST2,
:NEW.PHONEMOBILECOST,:NEW.PHONEMOBILECOST1, :NEW.PHONEMOBILECOST2, :NEW.PHONEMOBILECOST3, :NEW.PHONEWORKCOST,
:NEW.E_MAIL,:NEW.FAX,:NEW.PHONE_HOME, :NEW.PHONE_HOME1, :NEW.PHONE_HOME2, :NEW.PHONE_MOBILE,:NEW.PHONE_MOBILE1,
:NEW.PHONE_MOBILE2, :NEW.PHONE_MOBILE3,:NEW.PHONE_WORK, :NEW.USERNAME )
where
PAY_DATE = :OLD.PAY_DATE AND
EMPNO = :OLD.EMPNO;
end;
谢谢