| 关键字 | 说明 |
| deaclare | |
| begin | |
| exectpion | |
| end | |
| dbms_output.put_line() | 输出 |
| := | 赋值 |
| || | 连接 |
| constant | 常量 |
| not null | |
| %type | 类型 |
| 键盘输入 | |
| %rowtype | |
| subType | 子类型 |
declare
begin
null;
end;
declare
a int:=5;
begin
dbms_output.put_line(a);
end;
declare
a constant int:=5;
begin
dbms_output.put_line(a);
end;
declare
subtype atype is int;
b atype;
begin
b:=6;
dbms_output.put_line(b);
end;
本文详细介绍了PL/SQL的基础语法,包括关键字的使用,如declare、begin、exception、end、dbms_output.put_line、赋值操作符、字符串连接、常量定义、notnull、类型定义、键盘输入、子类型等。通过实例演示了变量声明、常量使用、子类型创建及输出语句的用法。
1319

被折叠的 条评论
为什么被折叠?



