Re: another question about connectby from contrib

From: Joe Conway <mail(at)joeconway(dot)com>
To: sector119(at)mail(dot)ru
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: another question about connectby from contrib
Date: 2003-04-23 15:20:09
Message-ID: 3EA6AF29.2000708@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

sector119(at)mail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-04-23 15:22:25 Re: Left Join Not Using Index?
Previous Message Shridhar Daithankar 2003-04-23 15:14:02 Re: Solaris