omacron
Technical User
- Feb 5, 2002
- 149
I am trying to create a trigger but getting the following error;
Here is my script;
Sorry I am new to Oracle and not sure what is wrong.
Code:
Warning: execution completed with warning
anonymous block completed
Here is my script;
Code:
CREATE OR REPLACE TRIGGER XXX.SALES_UPDATE_DETAIL
AFTER UPDATE
OF AMOUNTAPPLIED
,FULLYAPPLIED
ON XXX.SALES
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
UPDATE XXX.DETAIL SET
AmountApplied = :NEW.AmountApplied,
FullyApplied = :NEW.FullyApplied,
Balance = :OLD.Amount - :NEW.AmountApplied
WHERE Receipt = :OLD.Receipt AND linenum = :OLD.linenum;
END;
Sorry I am new to Oracle and not sure what is wrong.