How iterate records

Поиск
Список
Период
Сортировка
От Jan Poslusny
Тема How iterate records
Дата
Msg-id 421B1567.8090108@gingerall.cz
обсуждение исходный текст
Ответы Re: How iterate records  (Richard Huxton <dev@archonet.com>)
Re: How iterate records  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список pgsql-general
Hi,
I have a problem of plpgsql usage. When I iterate through dynamic query, like this:

FOR my_/record/ IN EXECUTE /text_expression/ LOOP
    /statements/
END LOOP;

I am not able to construct expression, which can get value for each 'item' of my_record, something like my_record[3] or
get_item(my_record,3), without knowledge about real names of record pieces. I know that it is not the goal of this
language,but my goal is to implement some lite functions returning XML rather then something else... 

pajout



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

Предыдущее
От: "FERREIRA William (COFRAMI)"
Дата:
Сообщение: rows and array
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: rows and array