我正在尝试使用包中的过程,以便可以调用外部程序。我不断遇到符号“CREATE”错误。我已经尝试了很多不同的方法,所以如果我的代码很乱,我很抱歉,我真的迷失了这个
create or replace package GetAllCust as
function GeTAllCust return sys_refcursor;
procedure GET_ALLCUST_FROM_DB(pSysRefCur OUT sys_refcursor);
end GetAllCust;
create or replace package body GetAllCust as
procedure GET_ALLCUST_FROM_DB (pSysRefCur OUT sys_refcursor) as
begin
open pSysRefCur for select * from customer;
return pSysRefCur;
exception
when others then
raise_application_error(-20000, SQLERRM);
end GET_ALLCUST_FROM_DB;
end GetAllCust;