using a self referencing table

Поиск
Список
Период
Сортировка
От drfrog@smartt.com
Тема using a self referencing table
Дата
Msg-id 3974805D.6C33895E@smartt.com
обсуждение исходный текст
Список pgsql-sql
i have a table with this structure

name (varchar)|category id (int4)|parent category id (int4)|leaf node
(bool)

im trying to make a perl script that should tree the info

parent catsubcat    subcat2    subcat2subcat        subcat2
...


but im having troubles wrapping my head around this

im using the Pg modules to access postgres

if anyone has any suggestions please lemme know thanks!


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

Предыдущее
От: Tubagus Nizomi
Дата:
Сообщение: describe table in 7.0.2
Следующее
От: JanWieck@t-online.de (Jan Wieck)
Дата:
Сообщение: Re: Median