pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: plpgsql cursors : dynamic or static?
Date: Wed, 23 Oct 2002 10:21:18 -0700 (PDT)
Message-ID: <20021023172118.20960.qmail@web80312.mail.yahoo.com> (raw)

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



view thread (3+ messages)  latest in thread

Message-ID: <20021023172118.20960.qmail@web80312.mail.yahoo.com>
Permalink:  ../20021023172118.20960.qmail@web80312.mail.yahoo.com/
Also on:    postgresql.org/message-id/20021023172118.20960.qmail@web80312.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lud_nowhere_man@yahoo.com
  Subject: Re: plpgsql cursors : dynamic or static?
  In-Reply-To: <20021023172118.20960.qmail@web80312.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox