Comma delimited results

From: "Chad Thompson" <chad(at)weblinkservices(dot)com>
To: "pgsql-novice" <pgsql-novice(at)postgresql(dot)org>
Subject: Comma delimited results
Date: 2002-12-23 19:07:44
Message-ID: 041e01c2aab6$939d6210$32021aac@chad
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Is there a way to display all the results of a row as one big comma delimited string?

ie.
select * & ","
from mytable

results
3,my house, wife, 8

IOW, I dont want to have to know the column names of mytable. I just want one big comma delimited result for each row.

While Im pretty sure we are venturing outside standard SQL, I would like to keep it as close as possible.

Thanks
Chad

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2002-12-23 19:22:18 Re: Simple query question
Previous Message Manfred Koizar 2002-12-23 18:34:48 Re: Simple query question