Re: another question about connectby from contrib - Mailing list pgsql-general

From Joe Conway
Subject Re: another question about connectby from contrib
Date
Msg-id 3EA6AF29.2000708@joeconway.com
Whole thread Raw
In response to another question about connectby from contrib  (sector119@mail.ru)
List pgsql-general
sector119@mail.ru wrote:
> ELECT f.*, link, text, target, icon, node FROM connectby('menu', 'id',
> 'parent_id', 8, 0) AS f(id integer, parent_id integer, level integer),
> menu where menu.id = f.id;
>
> I have got this:
>
>  id | parent_id | level | link |      text       | target | icon | node
> ----+-----------+-------+------+-----------------+--------+------+------
>   8 |           |     0 |      | #3         |        |      | t
>  11 |         8 |     1 |      | #3.1       |        |      | t
[...snip...]
>
> How am I able to get result where text field is like this:
>
> #3
> #3.1
[...snip...]

I don't see any difference. You'll have to be more clear with your question.

Joe


pgsql-general by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: Solaris
Next
From: Dennis Gearon
Date:
Subject: Re: Left Join Not Using Index?