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: How to store a directory info into a database?

Re: How to store a directory info into a database?

From: Marc <Marc-Weinstock_at_si.rr.com>
Date: Sun, 26 May 2002 14:14:35 GMT
Message-ID: <f56I8.51058$6c7.13709362@typhoon.nyc.rr.com>


create dir as
dir_id number,
dir_name varchar2(100);

create dir_hierarchy as
dir_id varchar2(100),
parent_dir_id varchar2(100);

create dir_file as
dir_id varchar2(100),
file_name varchar2(100);

Use the "connect by" in a select command to traverse the dir_hierarchy to give U the directory tree.
EASY!!!, not like the others.

"Louis Chen" <llchen_at_nortelnetworks.com> wrote in message news:3CEE8978.E5B9B398_at_nortelnetworks.com...
> Hi, I need your suggestion as what would be an good design of a
> relational database to store a directory structure like information? I
> would be very appreciated if you could point to me any samples, website
> or books.
>
>
> Louis
Received on Sun May 26 2002 - 09:14:35 CDT

Original text of this message

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