在PL/SQL中怎样执行存储过程
我写了一个返回结果集的存储过程:如下
建一个程序包:
CREATE OR REPLACE PACKAGE TESTPACKAGE AS
TYPE Test_CURSOR IS REF CURSOR;
end TESTPACKAGE;
建立存储过程,存储过程为:
create or replace procedure test_select(out_select out testpackage.Test_CURSOR) is
begin
open out_select for select * from test ;
end test_select ;
以上编译通过
然后在pl/sql中执行这个存储过程:
declare
out_select testpackage.test_cursor ;
begin
test_select(out_select) ;
dbms_output.put_line(out_select);
end ;
出现编译错误,请问哪里错了