-
Hi ,
Due to migration work the trigger in my schema was dropped.
It has to be again created.
When i executed the trigger it shows the following error.
What should i do.Good Guidance will be helpful.
SQL> BEGIN
2 IF INSERTING THEN
3 INSERT INTO EQPART(EQNUM,ITEMNUM) VALUES
4 (:new.eqnum,:new.itemnum);
5 ELSIF DELETING THEN
6 DELETE FROM EQPART WHERE EQNUM = :old.eqnum AND
7 ITEMNUM = :old.itemnum;
8 END IF;
9 END;
10
11 /
Bind variable "OLD" not declared.
Thanks in advance
Dinesh
-
Wouldn't it be
SQL> BEGIN
2 IF INSERTING THEN
3 INSERT INTO EQPART(EQNUM,ITEMNUM) VALUES
4 (:new.eqnum,:new.itemnum);
5 ELSIF DELETING THEN
6 DELETE FROM EQPART WHERE EQNUM = :new.eqnum AND
7 ITEMNUM = :new.itemnum;
8 END IF;
9 END;
[Edited by grjohnson on 09-24-2001 at 05:15 AM]
-
Did you put the Colon before old?
:OLD
-
He definatly did, that's why
OLD
looks like
:old
Cheers,