Re: options for no multiple rows?

Поиск
Список
Период
Сортировка
От Yvo Nelemans
Тема Re: options for no multiple rows?
Дата
Msg-id a30udl$7q3$1@news1.xs4all.nl
обсуждение исходный текст
Ответ на options for no multiple rows?  (pgsql <pgsqllist@mail.rineco.com>)
Список pgsql-sql
"pgsql" <pgsqllist@mail.rineco.com> wrote in message
news:Pine.LNX.4.21.0201262203530.25983-100000@mail.rineco.com...
> Greets!
>
> Ok, from what I've read (good, bad or indifferent) you can't create a
> stored procedure/function and return multiple rows to use in say a
> resultset with the following:
>

I've been searching for a solution to this problem too. Until now I've used
MSSQL where multiple rows (or even multiple resultsets) are't any problem
inside a sp.

I've thought about it and came up with the following idea.
NOTE: I haven't tested this!!!!!

Create a temporay table with the resultset you want.
Fill the table inside the sp
Do a select on the temporay table.

I don't now if it will work, but it looks okay.

regards
Yvo





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

Предыдущее
От: "Tomas Eriksson"
Дата:
Сообщение: compare with CHAR
Следующее
От: "Diehl, Jeffrey"
Дата:
Сообщение: NOTICE: Vacuum: can not process indices, views and certain system tables