Trigger Error
Posted by:
Sefa Koc
Date: March 17, 2012 04:59PM
I am newbie. I want to update a table named "st_penalty" at the beginning of each month. Each stuff' salary will be equal to wage of related tupple in st_penalty. I get an error from following sql command. Thanks for your help
The error is given at 2nd line.
CREATE TRIGGER updateWage
WHEN (DAY({fw NOW()}) = 1)
FOR EACH STATEMENT FROM staff
IF EXISTS (SELECT * FROM st_penalty WHERE st_penalty.staffId = staff.memId)
BEGIN
st_penalty.wage = staff.salary
END
Subject
Views
Written By
Posted
Trigger Error
2792
March 17, 2012 04:59PM
1253
March 17, 2012 07:45PM
1279
March 17, 2012 07:45PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.