plpgsql cursors : dynamic or static?

From: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
To: PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: plpgsql cursors : dynamic or static?
Date: 2002-10-23 17:21:18
Message-ID: 20021023172118.20960.qmail@web80312.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi:

Are cursors in plpgsql dynamic or static?

For example :

... /* some code */
FOR rec in SELECT f1,f2
FROM table1 WHERE .... LOOP

/* some codes that manipulate table1 */
END LOOP;

Do the result set pointed to by the cursor remains
the same even if performed some data manipulation
inside the FOR..LOOP?

Thank you in advance,

ludwig.

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message andres javier garcia garcia 2002-10-23 17:56:34 Hairy question - transpose columns
Previous Message andres javier garcia garcia 2002-10-23 16:53:40 odbc drivers