function with multi-values

Поиск
Список
Период
Сортировка
От Harry Yau
Тема function with multi-values
Дата
Msg-id 3AEA2104.FA87A337@regaltronic.com
обсуждение исходный текст
Ответы Re: function with multi-values  ("Eric G. Miller" <egm2@jps.net>)
Список 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 по дате отправления:

Предыдущее
От: James Thornton
Дата:
Сообщение: Vacuum analyze keeps hanging (RedHat 6.2, PG 7.03)
Следующее
От: Jack Bates
Дата:
Сообщение: On the _need_ to vacuum...