Re: Please Help on MS SQL7.0 Procedure to PostgreSQL - Mailing list pgsql-general

From Mike Mascari
Subject Re: Please Help on MS SQL7.0 Procedure to PostgreSQL
Date
Msg-id 3DE1D761.6070704@mascari.com
Whole thread Raw
In response to Please Help on MS SQL7.0 Procedure to PostgreSQL  ("annachau" <annachau@hongkong.com>)
List pgsql-general
annachau wrote:
> I have some problems on MS SQL procedure convert to PostgreSQL function. Please give me some advice.
>
> I have many procedure in MS SQL which return more than one value.
> Example:
> CREATE procedure usp_BBox_chk_policy_rule
>    @appln_ref_no       varchar(12),
>    @version            integer,
>    @offer_seq          numeric(18,0),
>    @policyID           char(3),
>    @pass_ind           integer  out,
>    @ret_cnt_off_desc   varchar(500) out,
>    @ret_cnt_off_desc_l varchar(500) out
>
> How can I return more than one value?

Use PostgreSQL 7.3 release candidate 2. See:

http://developer.postgresql.org/docs/postgres/xfunc-tablefunctions.html

for details regarding returning sets of rows. Download 7.3RC2 here:

http://www.ca.postgresql.org/ftpsite/beta


Mike Mascari
mascarm@mascari.com


pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Calculated fileds in pg
Next
From: Tommi Maekitalo
Date:
Subject: Re: GUI for Postgres Management? PostgreSQL vs MySQL.