Received: from tidal.ipinc.com (tidal.ipinc.com [199.245.188.85]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1GLWgx68540 for ; Fri, 16 Feb 2001 16:32:42 -0500 (EST) (envelope-from jliang@tidal.ipinc.com) Received: from localhost (jliang@localhost) by tidal.ipinc.com (8.9.3/8.9.3) with ESMTP id NAA69840; Fri, 16 Feb 2001 13:32:05 -0800 (PST) (envelope-from jliang@tidal.ipinc.com) Date: Fri, 16 Feb 2001 13:32:05 -0800 (PST) From: Jie Liang To: Roberto Mello cc: pgsql-sql@postgresql.org Subject: Re: PL/PgSQL FOR syntax In-Reply-To: <20010216113125.A14323@cc.usu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/295 X-Sequence-Number: 1491 Yes, e.g. declare r record; begin for r in select statement loop r.fieldname can fetch the result from the select statment row by row Jie LIANG St. Bernard Software Internet Products Inc. 10350 Science Center Drive Suite 100, San Diego, CA 92121 Office:(858)320-4873 jliang@ipinc.com www.stbernard.com www.ipinc.com On Fri, 16 Feb 2001, Roberto Mello wrote: > Hi, > > What's the correct syntax to access rows in a FOR loop? I'm writing > a PL/PgSQL doc and seem to be making a mistake somewhere. > I am referring to this: > > [<