Function returning multiple data

Поиск
Список
Период
Сортировка
От Jean-Christophe Boggio
Тема Function returning multiple data
Дата
Msg-id 907910169.20001012154702@thefreecat.org
обсуждение исходный текст
Список pgsql-novice
Hi,

I'm quite new to PG (coming from Oracle) and I can't create a function
that will send back multiple results, something like :

create function two_choices(id1 out text, id2 out text)
as '
begin
  id1:='some text';
  id2:='some other text';
end;' language 'plpgsql';

Is this possible without creating a dedicated type for every such
function ?

TIA,

--
Jean-Christophe Boggio
cat@thefreecat.org
Independant Consultant and Developer
Delphi, Linux, Oracle, Perl



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

Предыдущее
От: "S.A.Pamungkas"
Дата:
Сообщение: download postgresql for windows
Следующее
От: "Kevin Leclaire"
Дата:
Сообщение: Importing Data into Postgresql from MS Access