contrib/tablefunc/connectby question

Поиск
Список
Период
Сортировка
От sector119@mail.ru
Тема contrib/tablefunc/connectby question
Дата
Msg-id 20030422074215.GA14546@city.gov.te.ua
обсуждение исходный текст
Ответы Re: contrib/tablefunc/connectby question  (Joe Conway <mail@joeconway.com>)
Список pgsql-general
test=# \d menu
id        | integer | not null default
nextval('public.menu_id_seq'::text)
parent_id | integer |
data      | text

I write query:

SELECT * FROM connectby('menu', 'id', 'parent_id', 1, 0)
AS t(id integer, parent_id integer, level integer);

and get only id, parent_id, level fields!
how am I able to get data field?

(only this way: SELECT id_, parent_id_, level, data FROM
connectby('menu', 'id', 'parent_id', 8, 0) AS t(id_ integer, parent_id_
integer, level integer), menu where menu.id = id_; ???)

--
WBR, sector119

Вложения

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: > 16TB worth of data question
Следующее
От: Jeremiah Jahn
Дата:
Сообщение: Re: > 16TB worth of data question