1、存储过程的创建:
create [or replace] 过程名
[<参数1> in I out l in out<参数类型>[默认值I:=初始值]]
[<参数2> in I out l in out<参数类型>[默认值I:=初始值],...]
Islas
[局部变量]
begin
程序语句序列
[exception]
异常处理语句序列
end 过程名
2、存储过程的调用 : execute 过程名 [参数列表]
3、存储过程的删除: drop procdure 过程名
函数:
1、函数的创建:
create or replace function 函数名
[<参数1> in I out l in out<参数类型>[默认值I:=初始值]]
[<参数2> in I out l in out<参数类型>[默认值I:=初始值],...]
Return 返回数据类型
Islas
[局部变量声明]
begin
程序语句序列
[exception]
异常处理语句序列
end 过程名
2、函数的删除、
drop function 函数名