orcl PL base

How to create a Package?
create or replace package <packageName>
is
procedue <pro_name> (args I/O dataTypes);
...
end <packageName> ;

How to create a PackageBody?
create or replace package body <packageName>
is
procedue <pro_name>(args I/O dataTypes...)is
define
begin
...
end <pro_name> ;

How to create a procedure?
create or replace procedure <pro_name>(
args   dataTypes,.,.,.;
)  as
define
begin
...
end;

你可能感兴趣的:(oracle)