Search Postgresql Archives

Re: cursors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks,
what will be the syntax for that type of for?

Pavel Stehule wrote:
On 24/11/2007, Cesar Alvarez <c.alvarezx66@xxxxxxxxx> 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



    

  

begin:vcard
fn:Cesar Alvarez
n:;Cesar Alvarez
title:Web Development Asesor and Software Enginner
version:2.1
end:vcard

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux