typelocation.sql
来自「Oracle 9i PL/SQL程序设计的随书源码」· SQL 代码 · 共 32 行
SQL
32 行
REM typeLocation.sql
REM Chapter 8, Oracle9i PL/SQL Programming by Scott Urman
REM This file contains examples of different locations for
REM collection types.
-- Create a stored type which is visible to SQL and PL/SQL.
CREATE OR REPLACE TYPE NameList AS
VARRAY(20) OF VARCHAR2(30);
/
DECLARE
-- This type is local to this block.
TYPE DateList IS VARRAY(10) OF DATE;
-- We can create variables of both DateList and NameList here.
v_Dates DateList;
v_Names NameList;
BEGIN
NULL;
END;
/
DECLARE
-- Since NameList is global to PL/SQL, we can reference it in
-- another block as well.
v_Names2 NameList;
BEGIN
NULL;
END;
/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?