Re: recursive subquery

Поиск
Список
Период
Сортировка
От Arnaud PERE
Тема Re: recursive subquery
Дата
Msg-id 002c01c1eb58$694a2200$0100a8c0@arp.homelinux.org
обсуждение исходный текст
Ответ на recursive subquery  (Sheer El-Showk <sheer@saraf.com>)
Список pgsql-general
> I have a table with records that have a hierarchical relationship with one
> another.  Some records are children of other records which in turn can be
> children of higher level records and so on until the highest level records
> are reached.  This is a simple tree relationship.  It's being represented
> by a second table with holds parentid-childid tuples so that to find the
> children of a particular parent one only has to scan the second table's
> first field for that given parent's id.
> ...

I think you hae several solutions : this is the emulation of the connect by oracle solution. You could try these links
foundat http://archives.postgresql.org/pgsql-sql/2001-11/msg00438.php  

| There are some in the PostgreSQL Cookbook
| (http://www.brasileiro.net/postgres) and Dan Wickstrom (from OpenACS.org)
| came up with one for OpenACS:
|
| http://openacs.org/new-file-storage/one-file?file_id=123

Good luck
Arnaud


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

Предыдущее
От: Glen Eustace
Дата:
Сообщение: Koha Open Source Library System
Следующее
От: Hubert depesz Lubaczewski
Дата:
Сообщение: problems with non-trust authentication methods in 7.3devel?