function with multi-values

From: Harry Yau <harry(dot)yau(at)regaltronic(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: function with multi-values
Date: 2001-04-28 01:46:44
Message-ID: 3AEA2104.FA87A337@regaltronic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear:
I wanna create a function that return a multiple rows in to a single

row.
example:
CREATE FUNCTION GETNAME() RETURNS SETOF VARCHAR AS 'SELECT NAME FROM
TEST;' LANGUAGE 'SQL';

when i call this function it return:
----------
peter
susan
john

but I wonder is it possible to make it to return something like
---------------------
peter susan john

I have to use this result to print in quick report.
THANK YOU VERY MUCH

Harry Yau

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 2001-04-28 02:53:08 Re: SQL Where Like - Range it?!
Previous Message webb sprague 2001-04-27 22:47:30 Diagnostic