Pl/sql存储过程中 游标返回值问题

[复制链接]
查看11 | 回复3 | 2012-12-18 00:56:07 | 显示全部楼层 |阅读模式
看到你刚才的问题了,看看我的回答,补充:刚测了下,如果创建的是临时表,用create as select * from xxx,是没有数据的创建后再执行一次插入DECLAREpsqlstr VARCHAR2(200);stmp VARCHAR2(200);tname VARCHAR2(30);BEGIN tname := 'temp_s1'; -- 临时表名stmp := 'select * from t1 where 1=1'; -- t1为源表,stmp为从源表查询数据的sqlpsqlstr := 'create global temporary table '||tname||'...
回复

使用道具 举报

千问 | 2012-12-18 00:56:07 | 显示全部楼层
create or replace procedure test(v_cursorout sys_refcursor) asbegin
open v_cursor forselect * from temp_s1;end test;...
回复

使用道具 举报

千问 | 2012-12-18 00:56:07 | 显示全部楼层
你的执行代码呢?把代码复制出来,可能助你分析一番...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行