Re: plpgsql/cursor

Поиск
Список
Период
Сортировка
От
Тема Re: plpgsql/cursor
Дата
Msg-id 200109150059.21e6@lh00.opsion.fr
обсуждение исходный текст
Ответ на plpgsql/cursor  ("augie" <augie@bravurasystems.com>)
Список pgsql-general
> can i declare and fetch from a cursor inside a
plpgsql function?  (pg version 7.0.3)

In 7.1, the pl/pgsql document says you can code like
this:

DECLARE
 rec record;
BEGIN
 for rec in SELECT * from MyTable LOOP
    update tableX set tableX=rec.fieldA;
 END LOOP;
END;

CN

--------------------------------------------------------
You too can have your own email address from Eurosport.
http://www.eurosport.com






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

Предыдущее
От: Culley Harrelson
Дата:
Сообщение: Re: Fwd: Re: unicode in 7.1
Следующее
От: Alex Pilosov
Дата:
Сообщение: CLUSTER (was Re: get certain # of recs)