标签:
variable_name datatype [NOT NULL := value ];
例子:
dept varchar2(10) NOT NULL := “HR Dept”;
指定变量值的两种方式:
1) variable_name:= value;
2)
SELECT column_name
INTO variable_name
FROM table_name
[WHERE condition];
变量范围:
constant_name CONSTANT datatype := VALUE;
例子:
salary_increase CONSTANT number (3) := 10;
标签:
原文地址:http://www.cnblogs.com/goingforward/p/5842970.html