Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f51GOdE61669 for ; Fri, 1 Jun 2001 12:24:39 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 65766; Fri, 01 Jun 2001 09:24:38 -0700 From: "Josh Berkus" Subject: Re: question about PL/pgSQL function To: "datactrl" , X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Fri, 01 Jun 2001 09:24:38 -0700 Message-ID: In-Reply-To: <000901c0e9c4$4bd843a0$2400a8c0@hnjack> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200106/5 X-Sequence-Number: 3208 Jack, > select into rec1 * from EMP where empNo =''xxxx''; > i1 := xxx(rec1,5); Bad syntax. The correct syntax is: SELECT * INTO rec1 FROM EMP WHERE empNo=''xxxx''; > 2. Is that possible to return a record from a function? And how do I > get the > returned record in PL/pgSql No, it is not possible. I know the list archives are kinda hard to search, but we've discussed this question ad naseum; in fact, I just provided a workaround earlier this week. -Josh ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco