| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера