Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5C060476CD2 for ; Thu, 12 Dec 2002 08:41:03 -0500 (EST) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id ED52E476D8D for ; Thu, 12 Dec 2002 08:39:42 -0500 (EST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Thu Dec 12 14:37:38 2002 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id OAA14045; Thu, 12 Dec 2002 14:37:33 +0100 (MET) Message-ID: <3DF8911D.DAFAEF09@rodos.fzk.de> Date: Thu, 12 Dec 2002 14:37:33 +0100 From: Christoph Haller X-Mailer: Mozilla 4.06 [en] (X11; I; HP-UX B.10.20 9000/780) MIME-Version: 1.0 To: atul@imcindia.net Cc: pgsql-sql@postgresql.org Subject: Re: Stored Procedure Problem Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/154 X-Sequence-Number: 10742 > CREATE FUNCTION b_function() RETURNS int4 AS ' > DECLARE > an_integer int4; > BEGIN > select emp_id from employee; > return an_integer; > END; > ' > LANGUAGE 'plpgsql'; > Try SELECT INTO an_integer emp_id from employee; Regards, Christoph