Oracle > SQLPlusでストアドを実行する

2011-10-11 15:44:00 (Tue);

ストアドパッケージ

パッケージ名の修飾を忘れるとはまる。

sqlplus scott/tiger@db
set serveroutput on

declare
    ret_code VARCHAR2(1);
    ret_msg VARCHAR2(256);
begin
    -- パッケージ実行
    scott.pkg.pkg_proc('10000','1','999',ret_code,ret_msg);

    -- 戻り値出力
    dbms_output.put_line(ret_code);
    dbms_output.put_line(ret_msg);
end;
/








最終更新:2011年10月11日 15:44