CREATE TRIGGER leave_trigger
AFTER INSERT ON leaveapplication
FOR EACH ROW
IF employeemaster.empcode='".$empcode."' THEN
UPDATE employeemaster SET '".$leave_type=$leave_type."'-$numberofleave //I am facing problem here
END IF;
请帮我在语法上更正它 GIVEN $leave_type
isvarchar
和$numberofleave
is integer
。