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;'; 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -