X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 00149D7941 for ; Sun, 11 Sep 2005 04:41:59 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64430-04 for ; Sun, 11 Sep 2005 07:41:55 +0000 (GMT) Received: from chn-dns.primus-india.net (chn-dns.primus-india.net [203.196.153.7]) by svr1.postgresql.org (Postfix) with ESMTP id 9C54FD7903 for ; Sun, 11 Sep 2005 04:41:53 -0300 (ADT) Received: from ivesia82 (vesia-138-190-chn.ivesia.com [203.196.190.138] (may be forged)) by chn-dns.primus-india.net (8.12.8/8.12.8) with SMTP id j8B4tSL2010007 for ; Sun, 11 Sep 2005 10:25:30 +0530 Message-ID: <002801c5b6a4$43765f10$9a02a8c0@ivesia82> From: "Sangaran" To: Subject: Regarding Mutiple cursor returning in PostGres Date: Sun, 11 Sep 2005 13:11:44 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0023_01C5B6D2.5B70BE70" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Level: X-Archive-Number: 200509/117 X-Sequence-Number: 6015 This is a multi-part message in MIME format. ------=_NextPart_000_0023_01C5B6D2.5B70BE70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, Can any help me in writing a stored procedure in which it returns = multiple cursors. Is it possible in PostGres ?. I need the way like this BEGIN OPEN CURSOR c1 select * from table1 where column1>expression; OPEN CURSOR c2 select * from table2 where column2>expression; RETURN c1,c2; END Is this possible? Pls reply if any solution. regards, -sangaran ------=_NextPart_000_0023_01C5B6D2.5B70BE70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All,
 
Can any help me in writing a = stored procedure=20 in which it returns multiple cursors. Is it possible in PostGres = ?.
 
 
I need the way like this
 
BEGIN
    OPEN CURSOR = c1
        = select * from=20 table1 where column1>expression;
    OPEN CURSOR = c2
        select *=20 from table2 where column2>expression;
    RETURN = c1,c2;
END
 
Is this possible?
 
Pls reply if any solution.
 
regards,
-sangaran
------=_NextPart_000_0023_01C5B6D2.5B70BE70--