Selects in server side functions

Поиск
Список
Период
Сортировка
От Neil Davis
Тема Selects in server side functions
Дата
Msg-id OE39nVo9ewJu8UlSFfD000010c3@hotmail.com
обсуждение исходный текст
Ответы newbie question: ERROR: getattproperties: no attribute tuple 1259 -2  (Isaac <Isaac@UNSTOPPABLE.com>)
Re: Selects in server side functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Selects in server side functions  (Alex Pilosov <alex@pilosoft.com>)
Список pgsql-general
Hello,
I am trying to figure out how to return more than one field using "SETOF".
I can concatenate the fields in the select statement down to one and use SETOF Text to return them, then split them back apart in my code. This is a bit kludgy though. I would rather do this correctly and efficiently. In most RDBMS you can easily deal with multiple columns in server side procedures that contain a SELECT, but I can find nothing about how to do this in PostGreSQL Documentation or anywhere else.
 
How can you do this with PostGreSQL? If you can, is it better to do this this way, or better to put the query inline in the code?
 
Please respond to the email at the bottom.
 
thx,
Neil P Davis

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

Предыдущее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: 7.0 vs. 7.1 (was: latest version?)
Следующее
От: "Martin A. Marques"
Дата:
Сообщение: BAR now and with 7.1