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 f19IPDx57667 for ; Fri, 9 Feb 2001 13:25:14 -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 KAA35179; Fri, 9 Feb 2001 10:24:33 -0800 (PST) (envelope-from jliang@tidal.ipinc.com) Date: Fri, 9 Feb 2001 10:24:33 -0800 (PST) From: Jie Liang To: Najm Hashmi cc: pgsql Subject: Re: pgsql and cursor In-Reply-To: <3A8566CF.AE8414C0@mondo-live.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/175 X-Sequence-Number: 1361 I just know you can use implict cursor inside the plpgsql e.g declare rec record; begin FOR rec IN select_clause LOOP statements END LOOP; end; 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.ipinc.com On Sat, 10 Feb 2001, Najm Hashmi wrote: > Hi all, I am not sure If it is allowed to use cursor inside pgsql functions. > If it is possible, please someone could send exact synatx how it is used. If > it is not allowed is there a way arround it? I need to do some calculations > and then return this value as text. > Thanks in advance for all your help. > Najm >