Re: Stored Procedure Problem - Mailing list pgsql-sql

From Roberto Mello
Subject Re: Stored Procedure Problem
Date
Msg-id 20021212163330.GG22465@cc.usu.edu
Whole thread Raw
In response to Re: Stored Procedure Problem  ("Atul" <atul@imcindia.net>)
List 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!


pgsql-sql by date:

Previous
From: Roberto Mello
Date:
Subject: Re: primary + foreign key
Next
From: "Andy Morrow"
Date:
Subject: function replace doesnt exist