Re: Multiple Return Values?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Multiple Return Values?
Дата
Msg-id 200302171600.29510.josh@agliodbs.com
обсуждение исходный текст
Ответ на Multiple Return Values?  (Steve_Miller@sil.org)
Список pgsql-novice
Steve,

> We are in the process of converting a SQL Server database to PostgreSQL.
> SQL Server stored procedures can have output parameters, as well as a
> return value. Postgres, as far as I can tell, doesn't have output
> parameters. Anybody have a good workaround for returning multiple values
> out of Postgres?

Yes.  If you're using 7.3, then you can return your output values as a faux
record, as many as you want.

If you're running 7.2, then you can return stuff as a string with delimiters,
and parse it on the client end.

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


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

Предыдущее
От: Steve_Miller@sil.org
Дата:
Сообщение: Multiple Return Values?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Re Dynamic IP - pg_hba