dbms_sql将结果输出到ref cursor

[复制链接]
查看11 | 回复0 | 2010-1-4 08:33:08 | 显示全部楼层 |阅读模式
A few days ago, My developer encounted a problem when he develop a procedure. He met a dynamic select sql statement more than 32K.
I try to use dbms_sql package to solve this problem.
However, this brings new problems.
Our procedure used to develop as the following ways.
procedure DRP_RPT_SALES_QTY_ALL_MULTI
(
o_cursor_rst
out
ref
cursor
) is
begin

open o_cursor_rst for
'select * from dual';
end;

Now, I do not know how to achieve the same results when I use dbms_sql package instead execute immediate sql statement.
Plz help me.
Thanks.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行