I am having problems with a PL/SQL oracle program. I am trying to invoke a trigger before UPDATE ON table Product and insert the trigger messages into the table Events. Both Product and Events tables have been created. Also, the sequence has been created.
Here's my code below:
CREATE OR REPLACE TRIGGER MY_TRIG
BEFORE UPDATE
ON PRODUCT
FOR EACH ROW
BEGIN
INSERT INTO EVENTS(Prod_SEQ.NEXTVAL, eventtime, userupdating :OLD.ProductID FROM Product);
END;
/
I keep getting the same 2 errors:
1/2 SQL statement ignored
1/69 Invalid user.table.column, table column or column specification
Can anyone help me please. Thank you in advance
Here's my code below:
CREATE OR REPLACE TRIGGER MY_TRIG
BEFORE UPDATE
ON PRODUCT
FOR EACH ROW
BEGIN
INSERT INTO EVENTS(Prod_SEQ.NEXTVAL, eventtime, userupdating :OLD.ProductID FROM Product);
END;
/
I keep getting the same 2 errors:
1/2 SQL statement ignored
1/69 Invalid user.table.column, table column or column specification
Can anyone help me please. Thank you in advance