pipelined 函数
来源:互联网 发布:怎么打开mac的airplay 编辑:程序博客网 时间:2024/05/21 21:39
pipelined表函数用于返回行结果集。
下面是一个例子:
CREATE PACKAGE pkg1 AS
TYPE numset_t IS TABLE OF NUMBER;
FUNCTION f1(x NUMBER) RETURN numset_t PIPELINED;
END pkg1;
/
CREATE PACKAGE BODY pkg1 AS
-- FUNCTION f1 returns a collection of elements (1,2,3,... x)
FUNCTION f1(x NUMBER) RETURN numset_t PIPELINED IS
BEGIN
FOR i IN 1..x LOOP
PIPE ROW(i);
END LOOP;
RETURN;
END;
END pkg1;
/
-- pipelined function is used in FROM clause of SELECT statement
SELECT * FROM TABLE(pkg1.f1(5));
执行结果是:
COLUMN_VALUE
------------
1
2
3
4
5
参考文献:
《Oracle Database PLSQL User's Guide and Reference 10g Release 2.pdf》
- pipelined 函数
- 管道表函数 pipelined
- oracle pipelined 函数 及其替代方法
- oracle 管道化表函数(Pipelined Table)
- 管道函数(pipelined function)简单使用示例
- oracle管道(pipelined function)函数用法
- Oracle Pipelined Function 管道函数实例
- Oracle管道函数(Pipelined Table Function)介绍
- oracle 管道化表函数(Pipelined Table)
- Oracle管道函数(Pipelined Table Function)介绍
- PIPELINED管道化(流水线)表函数
- Oracle的pipelined函数提升数据输出性能
- PL/SQL 表函数, Cursor Variable, pipelined table function
- Oracle的pipelined函数提升数据输出性能
- Oracle的pipelined函数实现高性能大数据处理
- Oracle的pipelined函数实现高性能大数据处理
- oracle pipelined 自定义函数 function 返回table格式
- 【转】Oracle的pipelined函数实现高性能大数据处理
- 百度Hadoop分布式系统揭秘:4000节点集群
- SQL Server 2005 创建到 Oracle10g 的链接服务器
- C中“##”符号的用法
- Linux 内核编译 —— make localmodconfig 简化内核配置流程
- 作业论文1 --- 对目前拍拍网的一些建议
- pipelined 函数
- Error creating bean with name 'userService' defined in class path resource [beans.xml]: Unsatisfied dependency expressed through
- 2010最危险的编程错误
- SendDTMF
- 通用线程:POSIX 线程详解------------作者——Daniel Robbins
- 序列化Serializable(asp.net C#)
- 软件架构师应该知道的97件事
- try catch throw用法
- 命令行还是用户界面?