oracle - dynamic pl/sql syntax package proc -
syntax trouble simple dyanamic pl/sql insert statement. code follows.
sql_stmt varchar2(500); sql_stmt := 'pkg_collection.collection_ins_01(:1,:2,:3,:4,:5,:6)'; execute immediate sql_stmt using in out v_p1, in out v_p2, in out v_p3, in out v_p4, in out v_p5, in out v_p6;
(error: ora-00900: invalid sql statement)
what should actual syntax like?
you need change part make pl/sql instead of sql:
sql_stmt := 'begin pkg_collection.collection_ins_01(:1,:2,:3,:4,:5,:6); end;';