Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Can I create a table with a column containing varied-size objectsin Oracle?

Re: Can I create a table with a column containing varied-size objectsin Oracle?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Sun, 1 Aug 1999 09:54:53 +0100
Message-ID: <933498012.5363.1.nnrp-01.9e984b29@news.demon.co.uk>


I think this is what you are describing (coded under 8.0.4):

create type page as object (v1 varchar2(20)); /

create type pages as table of page;
/

create type book as object (id number(3), contents pages); /

create table books of book
nested table contents store as contents_table;

--

Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk

Jzhou wrote in message ...
>
>Similar to STL template datatypes, I want to use a OO-database which
>permits to store a list of objects under one table column. The size of the
>list is dynamic (For example, there is a table with two columns: id and
>Book. And there is an object type PAGE. 1st row - id column contains 1,
>Book column contains 3 PAGE objects. 2nd row - id column contains 2, Book
>column contains 5 PAGE objects.) Is there such OO_database exist?
>If not, can I build such a database?
>
>Thanks.
>
>Jing
>
Received on Sun Aug 01 1999 - 03:54:53 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US