oracle - error:PL/SQL: ORA-00904: : invalid identifier -
oracle - error:PL/SQL: ORA-00904: : invalid identifier -
create or replace bundle pls_check2 procedure check_proc(p_item_cat number, p_sub_cat number, p_pack_is number, p_pack_name number, v1 out number, v2 out number, v3 out number, v4 out number); procedure package_info1(param1 number, param2 number, param3 number); end pls_check2; create or replace bundle body pls_check2 v1 number; v2 number; v3 number; v4 number; procedure check_proc(p_item_cat number, p_sub_cat number, p_pack_is number, p_pack_name number, v1 out number, v2 out number, v3 out number, v4 out number) cursor c1 select ic.id itemcategory ic ic.id = p_item_cat; begin v1 := p_item_cat; v2 := p_sub_cat; v3 := p_pack_is; v4 := p_pack_name; c_p in c1 loop insert master_product_table (select null, null, package_info1(c_p.id, v2, v3) package); end loop; dbms_output.put_line('hello'); end; procedure package_info1(param1 number, param2 number, param3 number) v_is_incentivized varchar2(20); begin select is_incentivized v_is_incentivized bundle pk pk.id = 1; dbms_output.put_line('hi'); end; end pls_check2;
on compilation next error comes:
error(18,1): pl/sql: sql statement ignored error(33,7): pl/sql: ora-00904: : invalid identifier
you're trying phone call procedure
sql. that's not allowed (because doesn't create sense). alter package_info1
function package_info1(param1 number, param2 number, param3 number) homecoming number;
in bundle header ,
function package_info1(param1 number, param2 number, param3 number) homecoming number v_is_incentivized varchar2(20); begin select is_incentivized v_is_incentivized bundle pk pk.id = 1; dbms_output.put_line('hi'); homecoming 1; end;
in bundle body, , compile. nevertheless, i'd recommend rename package
table - name going cause pain without end.
oracle stored-procedures plsql ora-00904
Comments
Post a Comment