我分别编译就OK了:---------------------------------------------SQL> create or replace package TestPackage is
2 type tcursor is ref cursor; -- 定义游标变量
3 procedure GetRecords(rcursor out tcursor); -- 定义过程,用游标变量作为返回参数
4 end TestPackage;
5 /程序包已创建。SQL> create or replace package body TestPackage is
2 procedure GetRecords(rcursor out tcursor) as
3 begin
4 open rcursor for select * from jdmb;
5 end GetRecords;
6 end TestPackage;
7 /程序包主体已创建。
2 type tcursor is ref cursor; -- 定义游标变量
3 procedure GetRecords(rcursor out tcursor); -- 定义过程,用游标变量作为返回参数
4 end TestPackage;
5 /程序包已创建。SQL> create or replace package body TestPackage is
2 procedure GetRecords(rcursor out tcursor) as
3 begin
4 open rcursor for select * from jdmb;
5 end GetRecords;
6 end TestPackage;
7 /程序包主体已创建。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货