1
下面的id代码将对象值存储在类型表数组中。在类型表中存储对象值
创建对象:
Create or replace type t_loc as Object
(
name varchar2(255 byte),
idt char(2)
);
PLSQL块
set serveroutput on;
declare
TYPE test1 IS TABLE OF VARCHAR2(100) INDEX BY t_loc;
test2 test1;
begin
test2('abad') := t_loc('ahmedabad','CT');
test2('bang') := t_loc('bangalure','S');
test2('surat') :=t_loc('Surat','C');
dbms_output.put_line(test2('surat'));
end;
我不能编译代码上。 在oracle中不可能吗?或者有什么不对?