Row fields by position in a cursor

Поиск
Список
Период
Сортировка
От Mike Preston
Тема Row fields by position in a cursor
Дата
Msg-id s22472d4.026@mail.mosscodilis.com
обсуждение исходный текст
Ответы Re: Row fields by position in a cursor  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I am passing a SQL statement to a function as a parameter and then executing it via a call like
 
OPEN curs1 FOR EXECUTE sql_str;
 
Since I won't know in advance the fieldnames being passed by the SQL string, I'd like to dereference the column fields by position.  Can anybody tell me the syntax for doing this?  Doesn't seem to be much documentation on dereferencing info returned by a cursor.  I can fetch into either a record variable or a row variable, whichever works.
 
TIA,
Mike

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

Предыдущее
От: "Brian Maguire"
Дата:
Сообщение: pgpool
Следующее
От: Michael Romagnoli
Дата:
Сообщение: Novice Question