【发布时间】:2019-04-23 17:25:50
【问题描述】:
我对 PL/SQL 集合类型创建的语法使用感到好奇。在创建 PL/SQL 嵌套表集合类型(如果有)时,is table of 和 as table of 有什么区别?我在 Oracle 帮助文档中只看到了is table of,但我遇到的代码在创建集合类型时同时使用了is table of 和as table of。我尝试了这两个语句,两个语句似乎都以相同的速度执行并按预期保存数据。
例如,对于对象类型
create or replace type new_emp_ot is object
(
ssn number(9),
lname varchar2(200),
fname varchar2(200)
);
Oracle 的处理方式有什么明显的区别
create or replace type new_emp_nt as table of new_emp_ot;
和
create or replace type new_emp_nt is table of new_emp_ot;
?
【问题讨论】:
标签: oop plsql types syntax nested-table