oracle - PLS-00103: Encountered the symbol " " in a trigger -
this trigger , dont know whats wrong since gives me error
create or replace trigger dk_enrolments_insert after insert on dk_enrolments each row declare cursor enrolment_cur(e_id dk_enrolments.enrol_id%type) select o.offer_id, a.assmnt_id dk_assessments a, dk_offerings o a.offer_id=o.offer_id , e_id=:new.enrol_id; enrolment_rec enrolment_cur%rowtype; begin open enrolment_cur(:new.enrol_id); loop fetch enrolment_cur enrolment_rec; exit when enrolment_cur%notfound; insert dk_deliverables values(deliv_seq.nextval, enrolment_rec.assmnt_id,:new.enrol_id); end loop; close enrolment_cur; end;
my guess is
cursor enrolment_cur(e_id dk_enrolments.enrol_id%type)
this part: dk_enrolments.enrol_id%type
may not resolve parser understands - dk_enrolments.enrol_id
where defined? if not own object or there no public synonym need include schema. guessing externally defined column table.
Comments
Post a Comment