From: Roberto Mello <rmello@cc.usu.edu>
To: Atul <atul@imcindia.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Stored Procedure Problem
Date: Thu, 12 Dec 2002 09:33:31 -0700
Message-ID: <20021212163330.GG22465@cc.usu.edu> (raw)
In-Reply-To: <LHEOILFLDANINFJAGPEOIEFNCAAA.atul@imcindia.net>
References: <LHEOILFLDANINFJAGPEOIEFNCAAA.atul@imcindia.net>
On Thu, Dec 12, 2002 at 08:13:22PM +0530, Atul wrote:
> Hi,
> How to return multiple columns through stored procedure.
<snip>
> But This Gives Error(For Multiple column , not for single column)
> Please Let me know.
You didn't say which version of PostgreSQL you are using.
In PG 7.2 you can return a cursor.
In 7.3 you can return a cursor or a true record set.
See http://developer.postgresql.org/docs/postgres/plpgsql-cursors.html
(true to 7.2 and 7.3)
Also
http://developer.postgresql.org/docs/postgres/plpgsql-control-structures.html
("Returning from a function"). The part on returning record sets is only
relevant to 7.3
-Roberto
--
+----| Roberto Mello - http://www.brasileiro.net/ |------+
+ Computer Science Graduate Student, Utah State University +
+ USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ +
:.:..::..:::.:::::..:..:.:..:..::::.:...:: => BRAILE TAGLINE!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rmello@cc.usu.edu, atul@imcindia.net
Subject: Re: Stored Procedure Problem
In-Reply-To: <20021212163330.GG22465@cc.usu.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox