Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1183400
  • 博文数量: 398
  • 博客积分: 10110
  • 博客等级: 上将
  • 技术积分: 4055
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-23 20:01
个人简介

新博客http://www.cnblogs.com/zhjh256 欢迎访问

文章分类

全部博文(398)

文章存档

2012年(1)

2011年(41)

2010年(16)

2009年(98)

2008年(142)

2007年(100)

我的朋友

分类: Oracle

2008-01-06 21:33:05

PLS-00653

       声明为PIPELINED的函数不能在PL/SQL中使用,需要使用平面函数或者select * bulk collect into tab_oe_list from table(oe_list(pi_hr4u_id));代替。

       如执行以下过程将会发生错误:

       create or replace type hrp_oe_list as table of varchar2(10)

       /

FUNCTION oe_list(pi_hr4u_id IN hrp_users.usr_hr4u_id%TYPE)
RETURN hrp_oe_list
PIPELINED

As

Begin

end;

       /

       然后在PL/SQL中调用将会失败:

       tab_oe_list hrp_oe_list;

       tab_oe_list := oe_list(pi_hr4u_id);

       会发生PLS-00653错误。

阅读(3625) | 评论(0) | 转发(0) |
0

上一篇:ORA-30926

下一篇:Oracle数据压缩

给主人留下些什么吧!~~