how to loop until eof in a cursor with pgsql

Поиск
Список
Период
Сортировка
От Thomas Radnetter
Тема how to loop until eof in a cursor with pgsql
Дата
Msg-id 20136.1118158808@www6.gmx.net
обсуждение исходный текст
Список pgsql-general
hi folks,

any idea how to loop through a cursor until it's eof?

i'll try to do it this way:

declare cursor ..... (with param)


open cursor .... (param);
fetch into record ....

while found
 ... anything here
 fetch into record
end loop



am i right? can not try it at the moment.

any suggestions?

thanx,
tom

--
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++

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

Предыдущее
От: Phil Endecott
Дата:
Сообщение: Re: CPU-intensive autovacuuming
Следующее
От: John Barham
Дата:
Сообщение: Recovery when old WAL segment has been overwritten?