X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4C9199FB328 for ; Wed, 2 Aug 2006 21:12:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 05956-03 for ; Wed, 2 Aug 2006 21:11:54 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by postgresql.org (Postfix) with ESMTP id 45FC69FB28E for ; Wed, 2 Aug 2006 21:11:54 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id p77so846795nfc for ; Wed, 02 Aug 2006 17:11:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=BRg+9dh60V+xQDOXc5QmqYVFjhjVLm6Drc+YOTQjqKMLulMqXWy+uXeedYVD7Tr01nJm+okzFw3aebM0AvujauNnSJPYNAt5A0/fDE5R3ZWW6osQFECdc+V/FdrtAUkp3Mx2UqpUVeb8m9iKK3mWNdtRhhXQSSP4pD8wiH+MihQ= Received: by 10.78.142.14 with SMTP id p14mr558216hud; Wed, 02 Aug 2006 17:11:52 -0700 (PDT) Received: by 10.78.32.10 with HTTP; Wed, 2 Aug 2006 17:11:52 -0700 (PDT) Message-ID: Date: Wed, 2 Aug 2006 19:11:52 -0500 From: "Aaron Bono" To: "Penchalaiah P." Subject: Re: How to cal function in one another Cc: pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_99309_1462209.1154563912221" References: X-Google-Sender-Auth: 0a42ca5de4e060ae X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.556 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/21 X-Sequence-Number: 25979 ------=_Part_99309_1462209.1154563912221 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/2/06, Penchalaiah P. wrote: > > > > hai, > > In mainfun,the query returns more than two rows,if execute query outside. > > I have to remove limit keyword in mainfun defination...even it returns 1st > row values only..But i need the multful rows? > > so how can i do that...please help me... > > > > select subfun1(22); > > subfun1 > > ------------- > > (swarna,23) > > > > select mainfun(22); > > (2600,10) > > > > query result outside.. > > select sal,dept into return_rec from emp where mgr=23 -- here i > removed the limit keyword in mainfun definition > > > > 2600,10 > > 3500,20 > > 6520,10 > > > > I am waiting for ur positive reply... > Please provide the code for your functions so we can see what you are doing. ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com ================================================================== ------=_Part_99309_1462209.1154563912221 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/2/06, Penchalaiah P. <penchalaiahp@infics.com> wrote:

 

hai,

In mainfun,the query returns more than two rows,if execute query outside.

I have to remove limit keyword in mainfun defination...even it returns 1st row values only..But i need the multful rows?

so how can i do that...please help me...

 

select subfun1(22);

   subfun1

-------------

 (swarna,23)

 

select mainfun(22);

(2600,10)

 

query result outside..

select sal,dept into return_rec from emp where mgr=23        -- here i removed the limit keyword in mainfun definition

 

2600,10

3500,20

6520,10

 

I am waiting for ur positive reply...


Please provide the code for your functions so we can see what you are doing.


==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
================================================================== ------=_Part_99309_1462209.1154563912221--