From: | Roberto Mello <rmello(at)cc(dot)usu(dot)edu> |
---|---|
To: | Atul <atul(at)imcindia(dot)net> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Stored Procedure Problem |
Date: | 2002-12-12 16:33:31 |
Message-ID: | 20021212163330.GG22465@cc.usu.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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!
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Morrow | 2002-12-12 16:34:48 | function replace doesnt exist |
Previous Message | Roberto Mello | 2002-12-12 16:27:00 | Re: primary + foreign key |