package cpac
as
STGFILE xyz_INSTANCE.FILENAME%TYPE;
procedure POC (cid in xyz_instance.client_id%type,
stgtype in xyz_instance.stg_instance%type,
stgsrc in xyz_instance.stg_source%type);
end;
package body cpac
as
procedure POC (cid in xyz_instance.client_id%type,
stgtype in xyz_instance.stg_instance%type,
stgsrc in xyz_instance.stg_source%type
) Is
BEGIN
select filename
into stgfile
from xyz_instance
where stg_instance = stgtype
and stg_source = stgsrc
and client_id = cid;
END POC;
begin
POC('0123','19517','L');
dbms_output.put_line(STGFILE);
end cpac;
SQL语句被单独执行,程序包含SQL也执行,但只在包我得到的错误是:在4号线什么是错的这个包的声明和定义单独
错误
ORA-00900:http://docstore.mik.ua/orelly/oracle/prog2/ch16_02.htm
:无效的SQL语句,
从以下文件引用了
而不是仅仅给予负面状态什么错用质疑自己。 – Prashant 2014-09-22 11:51:50