Re: Can the following be done?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Can the following be done?
Дата
Msg-id 20030826123418.O37556-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Can the following be done?  (Juan Francisco Diaz <j-diaz@publicar.com>)
Список pgsql-novice
On Tue, 26 Aug 2003, Juan Francisco Diaz wrote:

> Create or replace function foo(param1, param2, param3) RETURNS SETOF
> RECORD(name TEXT, age INTEGER, address TEXT) AS ' ... ' LANGUAGE 'plpgsql';
>
> If this is not possible, is there any way to have always the same names and
> types for the returning columns when using SETOF RECORD?

You can make a composite type and return a set of that (you might want to
see http://techdocs.postgresql.org/guides/SetReturningFunctions )


В списке pgsql-novice по дате отправления:

Предыдущее
От: "Eft, Aaron"
Дата:
Сообщение: Re: Using PostgreSQL with PHP / Scope an Lifetime of $re
Следующее
От: "Luis H."
Дата:
Сообщение: Re: Using PostgreSQL with PHP / Scope an Lifetime of $result