I am trying to create a trigger in oracle but when I run the code I get the following:
Warning: Trigger created with compilation errors.
Can anyone help me?
CREATE OR REPLACE TRIGGER stoplight_flag_to_zero
AFTER UPDATE OF status ON projects
FOR EACH ROW
WHEN (old.status = 'Active')
BEGIN
update qa_review
set stoplight_flag = 0
where project_id = ld.id;
END stoplight_flag_to_zero
/
Warning: Trigger created with compilation errors.
Can anyone help me?
CREATE OR REPLACE TRIGGER stoplight_flag_to_zero
AFTER UPDATE OF status ON projects
FOR EACH ROW
WHEN (old.status = 'Active')
BEGIN
update qa_review
set stoplight_flag = 0
where project_id = ld.id;
END stoplight_flag_to_zero
/