在plsql下写了一个包,想返回里面一个存储过程中的游标.但测试窗口下测试,只说"已执行,耗时1毫秒",无结果
如题,我在自学ORACLE。在plsql下写了一个包,想通过存储过程返回一个游标。但是写完后,在测试窗口下,我测试,只在底部写着“已执行,耗时0.01毫秒”等这类提示,我...
如题,我在自学ORACLE。在plsql下写了一个包,想通过存储过程返回一个游标。但是写完后,在测试窗口下,我测试,只在底部写着“已执行,耗时0.01毫秒”等这类提示,我也看不到游标里的select语句返回的东西。是我写的错误了,还是就该这样?
create or replace package TEST_my as
TYPE T_CURSOR IS REF CURSOR;
procedure select_my(cprzh in number,Re_CURSOR out T_CURSOR);
end TEST_my;
CREATE OR REPLACE package BODY TEST_my as
procedure select_my(cprzh in number,Re_CURSOR out T_CURSOR) as
BEGIN
open re_cursor for
select * from test_t where test_t.cprzh=cprzh;
end select_dhm;
end TEST_my; 展开
create or replace package TEST_my as
TYPE T_CURSOR IS REF CURSOR;
procedure select_my(cprzh in number,Re_CURSOR out T_CURSOR);
end TEST_my;
CREATE OR REPLACE package BODY TEST_my as
procedure select_my(cprzh in number,Re_CURSOR out T_CURSOR) as
BEGIN
open re_cursor for
select * from test_t where test_t.cprzh=cprzh;
end select_dhm;
end TEST_my; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询