| От | Robert Treat |
|---|---|
| Тема | Re: return setof and Temp tables |
| Дата | |
| Msg-id | 200602171631.08197.xzilla@users.sourceforge.net обсуждение исходный текст |
| Ответ на | return setof and Temp tables ("Justin B. Kay" <jkay@2pattersons.com>) |
| Список | pgsql-general |
On Friday 17 February 2006 00:13, Justin B. Kay wrote:
> I have looked around and found that you can use return setof in a
> function to return a result set, but can you use a temp table as the
> setof target? I build a temp table using various select statements and
> then try to return the result as a recordset. I get an error: type t1
> does not exist.
> If this is not possible, is there some alternative way to do this? I am
> trying to translate what was done in a ms sql database.
>
If I were doing this, I would create a seperate permanent type that's
structure matched that of the temp table, or use out parameters to mimic it.
--
Robert Treat
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера