contrib/tablefunc/connectby question - Mailing list pgsql-general

From sector119@mail.ru
Subject contrib/tablefunc/connectby question
Date
Msg-id 20030422074215.GA14546@city.gov.te.ua
Whole thread Raw
Responses Re: contrib/tablefunc/connectby question  (Joe Conway <mail@joeconway.com>)
List 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

Attachment

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: > 16TB worth of data question
Next
From: Jeremiah Jahn
Date:
Subject: Re: > 16TB worth of data question