我有一个如下定义的多级集合。
declare
type t_addr_lines is varray(4) of varchar2(60);
type t_addr_entry is table of t_addr_lines index by varchar2(10);
type t_student is record
(
last_name varchar2(20),
first_name varchar2(20),
l_addr_entry t_addr_entry
);
type t_students is table of t_student;
l_students t_students;
begin
l_students := t_students();
l_students.extend();
end;
Run Code Online (Sandbox Code Playgroud)
/
本质上,结构是:
a. a student can have different types of addresses ( 'HOME', 'VACATION' )
b. each address can have maximum of 4 lines
Run Code Online (Sandbox Code Playgroud)
我想知道如何解决和填充集合的不同组成部分。