Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Trigger Syntax Error

Status
Not open for further replies.

Yelellav

Programmer
Feb 7, 2002
12
US
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 = :eek:ld.id;
END stoplight_flag_to_zero
/
 
Hi,
Try typing SHOW ERROR after the message and see if it is more specific..


[profile]
 
Don't think you need to specify the trigger name after "END" (like a function/procedure) and you may need a semi-colon there
"Helping others to help themselves..."
=================================
Thomas V. Flaherty Jr.
Birch Hill Technology Group, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top