有两个用户,其中一个用户编译oracle函数的时候不报错,另外一个用户编译就报错
CREATEORREPLACEFUNCTIONTO_ROW(ainvarchar2)returntable_typepipelined//报错行(报错信息identifi...
CREATE OR REPLACE FUNCTION TO_ROW
(
a in varchar2
)
return table_type pipelined //报错行(报错信息identifier 'TABLE_TYPE' must be declared)
is
str row_type;
b varchar2(1000);
begin
b:=replace(a,'%','');
for thisrow in (SELECT REGEXP_SUBSTR(b,'[^,]+', 1, LEVEL, 'i') myrow FROM dual CONNECT BY LEVEL <=LENGTH(b)-LENGTH(REGEXP_REPLACE(b,',',''))+1) loop
str:=row_type(thisrow.myrow);
pipe row(str);
end loop;
return;
end;
求大神指教,找了好久都没解决.. 展开
(
a in varchar2
)
return table_type pipelined //报错行(报错信息identifier 'TABLE_TYPE' must be declared)
is
str row_type;
b varchar2(1000);
begin
b:=replace(a,'%','');
for thisrow in (SELECT REGEXP_SUBSTR(b,'[^,]+', 1, LEVEL, 'i') myrow FROM dual CONNECT BY LEVEL <=LENGTH(b)-LENGTH(REGEXP_REPLACE(b,',',''))+1) loop
str:=row_type(thisrow.myrow);
pipe row(str);
end loop;
return;
end;
求大神指教,找了好久都没解决.. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询