Re: cursors

Поиск
Список
Период
Сортировка
От Cesar Alvarez
Тема Re: cursors
Дата
Msg-id 4748A5B8.5030708@gmail.com
обсуждение исходный текст
Ответ на Re: cursors  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: cursors
Список pgsql-general
Thanks,
what will be the syntax for that type of for?

Pavel Stehule wrote:
On 24/11/2007, Cesar Alvarez <c.alvarezx66@gmail.com> wrote: 
 Hello every one.im trying to make a Loop and i found in the manual this.
FOR <target> IN <query> LOOP    <statements>END LOOP
Can i use cursor instead of the Query in the loop?? ,this es more legible than using the open/fetch/close of the cursor.
Regard Cesar Alvarez.   
Hello

FOR statement use cursor internally. If you wont to use cursor
explicitly, you have to use WHILE loop.

Regards
Pavel Stehule
 
---------------------------(end of
broadcast)---------------------------
TIP 6: explain analyze is your friend


   
 

Вложения

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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: cursors
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: cursors