Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Creating nested tables
Interesting homework :)
Works in my Oracle 8.1.6:
CREATE TYPE dog_info_type as object (
Dog_id NUMBER, Dog_breed VARCHAR2(40), Dog_birthdate DATE);
create type dog_info_array_type as table of dog_info_type;
/
create table dog_owners (
Name VARCHAR2(40),
Address VARCHAR2(60),
Dog_name VARCHAR2(40),
Dog_info dog_info_array_type)
nested table Dog_info store as X_Array_Data (
(PRIMARY KEY (nested_table_id, dog_id))
ORGANIZATION INDEX);
Daniel
Received on Tue Feb 04 2003 - 11:43:03 CST
![]() |
![]() |