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