Re: Recursive select

Поиск
Список
Период
Сортировка
От Esteban Gutierrez Abarzua
Тема Re: Recursive select
Дата
Msg-id Pine.LNX.4.21.0110291553300.26574-100000@sauce.chillan.ubiobio.cl
обсуждение исходный текст
Ответ на Recursive select  ("Jason Kwok" <jason@newhonest.com>)
Список pgsql-sql
On Fri, 26 Oct 2001, Jason Kwok wrote:

> I have a table :
> 
> MyID           parentID
> ================
> 5                    6
> 6                    7
> 3                    13
> 7                    3
> 
> Is there any simple select statement that can get all rows with MyID = 5 and
> all its parents?
> That means 5's parenet is 6, 6's parent is 7, 7's parent is 3.....
> 
> 
> Jason
> 
I think that this is not possible.

You may do it using sql embedded or jdbc!


bye.



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Deletion Recursively
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: PostgreSQL, Java & JDBC