【发布时间】:2021-07-16 16:52:45
【问题描述】:
我在集合变量中有记录。 O 想将所有记录插入到表的 CLOB 列中。
set serveroutput on;
declare
type ROW_DATA is table of varchar2(256) ;
ROW_D ROW_DATA;
begin
with DIFF_TAB_DATA as
(
select SOME_COLUMN from SOME_TABLE1
union all
select SOME_COLUMN from SOME_TABLE2
union all
select SOME_COLUMN from SOME_TABLE3
union all
select SOME_COLUMN from SOME_TABLE4
union all
select SOME_COLUMN from SOME_TABLE5
)
select SOME_COLUMN bulk collect into ROW_D from DIFF_TAB_DATA;
insert into CLOB_TAB values(ROW_D);
end;
但是我得到了本地集合变量不能在插入语句中使用的错误。
【问题讨论】: