From senthil.kandaswamy@mobax.com Thu Jan 2 05:58:45 2003 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DDB04476BC4 for ; Thu, 2 Jan 2003 00:58:45 -0500 (EST) Received: from mobax.com (mh10.voicegateway.com [64.124.36.200]) by postgresql.org (Postfix) with ESMTP id 69C61476AB4 for ; Thu, 2 Jan 2003 00:40:30 -0500 (EST) Received: from Earth [203.195.200.5] by mobax.com with ESMTP (SMTPD32-7.13) id A12D2740132; Wed, 01 Jan 2003 21:42:05 -0800 Message-ID: <007b01c2b222$3f6aef00$67cac9c8@mobax.com> From: "Senthil" To: "Jie Liang" , Subject: Some more doubts in postgresql -- Urgent Date: Thu, 2 Jan 2003 11:15:54 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0078_01C2B250.50B0FF60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Disposition-Notification-To: "Senthil" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Declude-Sender: senthil.kandaswamy@mobax.com [203.195.200.5] X-Declude-Spoolname: Dd12d02740132a34a.SMD X-Note: This E-mail was scanned for outbound spam. X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/9 X-Sequence-Number: 6851 This is a multi-part message in MIME format. ------=_NextPart_000_0078_01C2B250.50B0FF60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hai everybody, Thanks for Ur immediate reply, Jie Liang. I had gone through the document plpgsql-porting.html, U mentioned a= lready. It was quite useful.=20 1) But, in that there is nothing about the Calling of plpgsql funct= ion(equivalent of Oracle stored procedure with many OUT parameters) = from java code and returning of the plpgsql values corresponding to the Ora= cle OUT parameter, to the Java code, as this is my current issue to be solv= ed urgently. I want some answers related to this. =20=20=20=20=20=20=20=20 2) Moreover, somebody had said that OID in postgresql is the equivalent of = Oracle's ROWNUM.=20 I cannot agree this, because Oracle's ROWNUM is table-specific= , whereas postgresql OID is database specific. Because of this difference, I'm unable to delete from tables b= ased on ROWNUM, which I was asked to do. Can anybody help me out to solve this issue, as quickly as pos= sible? =20=20=20=20=20=20=20=20 3) What is the syntax for plpgsql GOTO label. When I use like this, I get = some parse errors: start: ..... .....=20=20=20=20 .... GOTO start; How to solve this issue? Can anybody point out, where I am going wron= g? 4) My Oracle stored procedure which is to be converted to plpgsql function = contains EXIT WHEN SQL%ROWCOUNT =3D 0; TO COME OUT OF A LOOP. How should it be converted in postgresql? =20=20=20 Since I'm in need of the answers very urgently, please send the answers as = quickly as possible. I'll be happy if I can get the answers by today or tomorrow. Thanks everybody in advance. Senthil=20=20 ------=_NextPart_000_0078_01C2B250.50B0FF60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hai everybody,
       = Thanks=20 for Ur immediate reply, Jie Liang.
       = I had=20 gone through the document plpgsql-porting.html, U mentioned=20 already.
       = It was=20 quite useful.
       = 1) But,=20 in that there is nothing about the Calling of plpgsql function(equivalent o= f=20 Oracle stored procedure with many OUT      &n= bsp;=20 parameters) from java code and returning of the plpgsql values=20 corresponding to the Oracle OUT parameter, to the Java code, as this is my= =20 current issue to be solved urgently.
       = I want=20 some answers related to this.
       = =20
2) Moreover, somebody had said that O= ID in=20 postgresql is the equivalent of Oracle's ROWNUM. 
           =  =20 I cannot agree this, because Oracle's ROWNUM is table-specific, whereas=20 postgresql OID is database specific.
           =  =20 Because of this difference, I'm unable to delete from tables based on ROWNU= M,=20 which I was asked to do.
           =   Can=20 anybody help me out to solve this issue, as quickly as possible?
       = =20
3) What is the syntax for plpgsql GOTO lab= el. =20 When I use like this, I get some parse errors:
           =        start:
           =         =20 .....
       =20             .....  &= nbsp;=20
       =20             ....
           =        GOTO=20 start;
     How to solve this= =20 issue?  Can anybody point out, where I am going wrong?
4) My Oracle stored procedure which is to = be=20 converted to plpgsql function contains
          EXIT WHEN= =20 SQL%ROWCOUNT =3D 0; TO COME OUT OF A LOOP.
   How should it be co= nverted=20 in postgresql?
  
Since I'm in need of the answers very urge= ntly,=20 please send the answers as quickly as possible.
 
I'll be happy if I can get the answers by = today or=20 tomorrow.
 
Thanks everybody in advance.
Senthil  
 
------=_NextPart_000_0078_01C2B250.50B0FF60-- From markcarew@bigpond.com Thu Jan 2 21:15:27 2003 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CC44D475F5D for ; Thu, 2 Jan 2003 16:15:27 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 5E8B4475C8B for ; Thu, 2 Jan 2003 16:15:27 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 44CA943AFD3; Thu, 2 Jan 2003 16:15:27 -0500 (EST) From: "mark carew" X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Some more doubts in postgresql -- Urgent Date: Fri, 3 Jan 2003 07:10:28 +1000 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 18 Message-ID: References: <007b01c2b222$3f6aef00$67cac9c8@mobax.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/16 X-Sequence-Number: 6858 Hi Sentill, "Practical PostgreSQL" O'Reilly Press chapter 11 describes FOR ......... IN .... LOOP END LOOP; Or then "PHP an PostgreSQL" SAMS chapter 9, section 9.2 has a good discussion. And also "PostgreSQL, Developer's Handbook" SAMS chapter 5 discusses FOR loops. Regards Mark Carew