i am inserting a CLOB data into a table. as part of this, I am inserting a complete plsql procedure into a clob column. Procedure has many dynamic sql statements. when inserting its throwing ora error.
sample code:
insert into t_prc_cmpre( prc_nm,vrsn_nbr,v_CLOB ,envr)
(select 'PRC_1','3.7.5',
'CREATE OR REPLACE PROCEDURE PRC1
IS
v_sql clob;
BEGIN
v_stmt:='INSERT INTO '||v_targetschema||'.'|| PI_TABLE ||' (COL1,COL2,COL3...)
execute immediate v_stmt;
end;
/'
since insert statement has single quote ,its not allowing to insert into clob column. Please help me to resolve the issue.
Many a thanks!