模式:
create or replace package 包名 is
定義變量
函數聲明
過程聲明
end 包名;
/
show err;
create or replace package body 包名 is
函數定義
過程定義
end 包名;
/
show err;
舉例
create or replace package pck_report_getconreportdata is
function getActiveIsbastaus(p_id number
procedure proc_CreateConreportData(p_type number
procedure proc_CreateAllConreportData(p_type number);
end pck_report_getconreportdata;
/
show err;
create or replace package body pck_report_getconreportdata is
function getActiveIsbastaus(p_id number
is
begin
end getActiveIsbastaus;
end pck_report_getconreportdata;
/
show err;
From:http://tw.wingwit.com/Article/program/Oracle/201311/17355.html