11c版本执行结果
12C 在打开函数的时候
CREATE OR REPLACE function split(p_string varchar2, p_sep varchar2 := ',')
return type_split
pipelined is
idx pls_integer;
v_string varchar2(3000) := p_string;
begin
loop
idx := instr(v_string, p_sep);
if idx > 0 then
pipe row(substr(v_string, 1, idx - 1));
v_string := substr(v_string, idx + length(p_sep));
else
pipe row(v_string);
exit;
end if;
end loop;
end split;
求好心朋友们 给看下
去你11g的库里,把这个type "type_split"的代码复制到12c里创建一下