Can a function return a record set?

Поиск
Список
Период
Сортировка
От John Taves
Тема Can a function return a record set?
Дата
Msg-id 3a8f7b37_1@news.nwlink.com
обсуждение исходный текст
Ответы Re: Can a function return a record set?  (Jie Liang <jliang@ipinc.com>)
Re: Can a function return a record set?  ("Josh Berkus" <josh@agliodbs.com>)
Список pgsql-sql
Am I correct in concluding that I can't return a record set from a function?

For example, in MS SQL I would do:

create procedure foo as
select * from yada

I expected to be able to do the following in postgresql.

create function foo (integer) returns (integer) as '
begin
select * from yada;
end; '
language 'plpgsql';

I am concluding that I can't.

jt





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

Предыдущее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Strange parse error??
Следующее
От: "Kevin Quinlan"
Дата:
Сообщение: Speed of SQL statements