Re: Stored Procedure Problem

From: "Atul" <atul(at)imcindia(dot)net>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Stored Procedure Problem
Date: 2002-12-12 14:43:22
Message-ID: LHEOILFLDANINFJAGPEOIEFNCAAA.atul@imcindia.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,
How to return multiple columns through stored procedure.

Consider EX.

CREATE FUNCTION b_function() RETURNS varchar AS '
DECLARE
an_integer int4;
an_name varchar;
BEGIN
select into an_integer emp_id,an_name emp_name from employee;
return an_integer,an_name;
END;
'
LANGUAGE 'plpgsql';

But This Gives Error(For Multiple column , not for single column)
Please Let me know.

Thanks

Atul…

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tomasz Myrta 2002-12-12 14:51:44 Re: Stored Procedure Problem
Previous Message Christoph Haller 2002-12-12 14:29:45 Re: Performance Problems