Re: another question about connectby from contrib

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: another question about connectby from contrib
Дата
Msg-id 3EA6AF29.2000708@joeconway.com
обсуждение исходный текст
Ответ на another question about connectby from contrib  (sector119@mail.ru)
Список 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 по дате отправления:

Предыдущее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Solaris
Следующее
От: Dennis Gearon
Дата:
Сообщение: Re: Left Join Not Using Index?