oracle - PL/SQL equivalent of SELECT statement -
what pl/sql equivalent of sql query:
select * table(owner.package.get_exam('123456789'));
this function trying call:
function get_exam(id in varchar2) return ab_assign_v1 cursor c_exams(cid varchar2) select t_api_exam_v1( sei.person_id, --unique id l.description --loc description ) my_view sei join loc l on sei.loc_code = l.loc_code v_collection ab_assign_v1; begin open c_exams(id); fetch c_exams bulk collect v_collection; close c_exams; return v_collection; exception when others error_a1.raise_error(sqlcode, sqlerrm); end get_exam;
hope helps.
declare lv <collection_name>; begin lv:= owner.package.get_exam('123456789'); dbms_output.put_line(lv.count); end; /
Comments
Post a Comment