Re: Querying Hierarchical Data

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Querying Hierarchical Data
Дата
Msg-id 200303031034.48165.josh@agliodbs.com
обсуждение исходный текст
Ответ на Querying Hierarchical Data  ("Eric" <someone@somewhere.com>)
Список pgsql-sql
Eric,

> How do I access hierarchical data under PostgreSQL?
> Does it have SQL command similar to Oracle's CONNECT BY?

Joe Conway wrote CONNECT BY as a function.  It's in /contrib in your
PostgreSQL source for versions 7.3.0 and above, in /contrib/tablefunc I
think.  There is also a different tree implementation in /contrib/ltree.

If that doesn't work for you, there are a number of different solutions to the
tree structure problem, and sample implementations of all of them on
PostgreSQL can be found through the web.  Joe Celko covers three of them in
"SQL for Smarties".

--
Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Querying Hierarchical Data
Следующее
От: Tom Lane
Дата:
Сообщение: Re: OUTER JOIN with filter