| От | knut.suebert@web.de |
|---|---|
| Тема | Support for "nested sets" and PHP (Re: Recursive select) |
| Дата | |
| Msg-id | 20020308183811.GA7536@web.de обсуждение исходный текст |
| Ответ на | Re: Recursive select (71062.1056@compuserve.com (--CELKO--)) |
| Список | pgsql-sql |
--CELKO-- schrieb: > The usual example of a tree structure in SQL books is called an > adjacency list model and it looks like this: > Another way of representing trees is to show them as nested sets. Hello, I thought a while about those nested sets to avoid recursive selects. Made a few functions. Some of the expensive stuff seems to be solved by introducing a 3rd column called "lvl". If you are interested in, you can find it at http://www.net-one.de/~ks/WOoK/ by taking a look at "The PostrgreSQL side". Celko's original text is also there. Some stuff may be interesting for using PHP to edit PostgreSQL's tables. But that part is incomplete, yet. I'd be happy to get your thoughts to improve the handling (and my understanding) of "nested sets". Bye, Knut Sübert
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера