首页 新闻 赞助 找找看

Oracle 自定义函数

0
悬赏园豆:5 [已关闭问题] 关闭于 2013-04-28 11:42

create or replace type type_split as table of varchar2(32676);

create or replace function split
(
p_list varchar2,
p_sep varchar2 := '/'

) return type_split pipelined

is
l_idx pls_integer;
v_list varchar2(50) := p_list;
begin
loop
l_idx := instr(v_list,p_sep);
if l_idx > 0 then
pipe row(substr(v_list,1,l_idx-1));
v_list := substr(v_list,l_idx+length(p_sep));
else
pipe row(v_list);
exit;
end if;
end loop;
return;
end split;

 

ORA-24344: success with compilation error

不知道哪儿有错误了,求指导

我本猿类的主页 我本猿类 | 初学一级 | 园豆:2
提问于:2013-04-28 11:29
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册