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

Поиск
Список
Период
Сортировка
От Chris Bitmead
Тема Re: [GENERAL] How to express categorized items in relational tables
Дата
Msg-id 373A2FDB.8B4123DF@bigfoot.com
обсуждение исходный текст
Ответ на How to express categorized items in relational tables  (Doo Suk Yang <microbe@mail.lgchem.co.kr>)
Ответы Re: [GENERAL] How to express categorized items in relational tables  (Doo Suk Yang <microbe@mail.lgchem.co.kr>)
Список 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);

В списке pgsql-general по дате отправления:

Предыдущее
От: Doo Suk Yang
Дата:
Сообщение: How to express categorized items in relational tables
Следующее
От: Botond Tarnay
Дата:
Сообщение: [GENERAL] postgres -E