代码如下:
CREATE OR REPLACE PACKAGE MyPackge is
TYPE cs is REF CURSOR;
procedure GetList(out_rs out cs);
END MyPackge;
create or replace PACKAGE body MyPackge
is
procedure GetList(out_rs out cs)
is
begin
open out_rs for select * from dept
end;
end;
报错信息:
Compilation errors for PACKAGE SCOTT.MYPACKGE
Error: PLS-00103: 出现符号 "CREATE"
解决进度:
经过一轮查资料,还没有解决该问题。
期待高手指点。

最新回复
yzsind (2008-8-24 13:45:42)
TYPE cs is REF CURSOR;
procedure GetList(out_rs out cs);
END MyPackge;
/
create or replace PACKAGE body MyPackge
is
procedure GetList(out_rs out cs)
is
begin
open out_rs for select * from dept;
end;
end;
/
yzsind (2008-8-24 13:47:09)
mathli (2008-8-24 21:00:31)