1
CREATE OR REPLACE TYPE pack.D_O IS OBJECT(
r number,
l number,
s_pack number(3),
s_pack_name varchar2(50),
n_uch number(5),
type_name varchar2(30),
date_att date,
cause_att number(2),
cause_att_name varchar2(250)
)
----------------------------------------------------------------------
CREATE OR REPLACE TYPE pack.D_T IS TABLE OF pack.D_O;
----------------------------------------------------------------------
CREATE OR REPLACE TYPE pack.d2_o IS OBJECT(
d NUMBER(5),
n VARCHAR2(75),
m VARCHAR2(75),
f number,
z pack.D_T
)
----------------------------------------------------------------------
select pack.d2_O(
manager,
name,
office,
regalias,
? -- how to fill "z" collection here?
)
from
t1,t2
where
.....
謝謝!但我怎樣才能使用子查詢填充「z」? pack.D_T的數據綁定到某個表,我們應該動態地填充它,我們沒有一些特定的數據。 – kseen