function with multi-values - Mailing list pgsql-general

From Harry Yau
Subject function with multi-values
Date
Msg-id 3AEA2104.FA87A337@regaltronic.com
Whole thread Raw
Responses Re: function with multi-values
List 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


pgsql-general by date:

Previous
From: James Thornton
Date:
Subject: Vacuum analyze keeps hanging (RedHat 6.2, PG 7.03)
Next
From: Jack Bates
Date:
Subject: On the _need_ to vacuum...