本篇为PL/SQL的程序设计总结
1、PL/SQL的块结构
① PL/SQL的块结构是指其一般的大纲或模式
declare -- optional
变量的声明
光标的说明
用于定力的例外
begin
...
exception -- optional
end;
② PLSQL的说明部分
v_ename char(10)
v_ename emp.ename%type; --是指与emp表的ename字段的类型相同
emp_rec emp%rowtype; --是指与emp表中的一行的数据类型相同
number的子类型
dec
decimal
double precision
float
integer
int
numeric
real
smallint
③
④