Re: [GENERAL] How to express categorized items in relational tables

From: Chris Bitmead <chris(dot)bitmead(at)bigfoot(dot)com>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] How to express categorized items in relational tables
Date: 1999-05-13 01:50:19
Message-ID: 373A2FDB.8B4123DF@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Doo Suk Yang wrote:
>
> I'm novice in database world.
> Now I have to make design a database where categorized items should be
> stored. It resembles the structure something like seen in Yahoo.
>
> Thanks for reading and generous comments of yours.

I do it something like this..
create table category (title text, category oid);
so that categories have parent categories. If the category attribute is
null then it's a parent category. For urllinks (like in yahoo) I have
create table urllink (title text, url text, category oid);

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Botond Tarnay 1999-05-13 09:53:32 [GENERAL] postgres -E
Previous Message Doo Suk Yang 1999-05-13 00:52:35 How to express categorized items in relational tables