Re: Tree structure

Поиск
Список
Период
Сортировка
От Zeljko Trogrlic
Тема Re: Tree structure
Дата
Msg-id 4.1.20000911182824.018d5078@192.168.0.7
обсуждение исходный текст
Ответ на Tree structure  ("Trewern, Ben" <Ben.Trewern@mowlem.com>)
Список pgsql-sql
Normally it's done with self-relation. You need a table with "ID" and "PARENT_ID". PARENT_ID will contain null for
rootlevel and other row's ID for children. One warning: going through such tree could be slow. I don't know is there
anythingPostgreSQL specific that might help. I know that Oracle have a special tree command.<br /><br /> At 14:27
11.9.2000, Trewern, Ben wrote: <br /><br /><font size="2"><blockquote cite="cite" type="cite">Anybody know how to make
atree structure using related tables using Postgres.  Something like a directory structure is what I'm aiming for.  I'm
surethere is an easy way but I'm having probs.<br /></blockquote></font><br /> Any help would be appreciated. <br /><br
/><fontsize="2">Ben.</font><br /> 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Isolation and Concurrency in PG functions?
Следующее
От: "G. Anthony Reina"
Дата:
Сообщение: How can I select all of the tables with field name 'area'?