Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 69EEC476F48 for ; Mon, 13 Jan 2003 13:46:09 -0500 (EST) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by postgresql.org (Postfix) with ESMTP id B6DC4476E61 for ; Mon, 13 Jan 2003 13:44:50 -0500 (EST) Received: from klaster.net (pe176.krakow.cvx.ppp.tpnet.pl [213.76.40.176]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id D5DF02B25A; Mon, 13 Jan 2003 19:42:03 +0100 (CET) Message-ID: <3E230A15.306@klaster.net> Date: Mon, 13 Jan 2003 19:48:53 +0100 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ddurst@larubber.com Cc: pgsql-sql@postgresql.org Subject: Re: Returning row or rows from function? References: <39394.216.86.192.34.1042093261.squirrel@www.la-rubber.com> In-Reply-To: <39394.216.86.192.34.1042093261.squirrel@www.la-rubber.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/180 X-Sequence-Number: 11045 David Durst wrote: > I want to create a function that will return > a row or rows of a table is this possible? > > If so can someone replay with a complete example? I propose you reading a document of Stephan Szabo about functions returning sets. You need postgresql 7.3 to do this. http://techdocs.postgresql.org/guides/SetReturningFunctions Tomasz Myrta