Re: cursors and for loops?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cursors and for loops?
Дата
Msg-id 15008.1081699255@sss.pgh.pa.us
обсуждение исходный текст
Ответ на cursors and for loops?  ("Dennis" <pg-user@calico-consulting.com>)
Ответы Re: cursors and for loops?
Список pgsql-sql
"Dennis" <pg-user@calico-consulting.com> writes:
> I am wondering if I can use a cursor in a for loop.

Something like
LOOP    FETCH ...;    EXIT WHEN NOT found;    ...END LOOP;

should do it.
        regards, tom lane


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: trigger/for key help
Следующее
От: elein
Дата:
Сообщение: Re: SQL challenge--top 10 for each key value?