Re: PL/PGSQL help for getting number of rows matched.

From: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
To: "Jaime Casanova" <el_vigia_ec(at)hotmail(dot)com>, stehule(at)kix(dot)fsv(dot)cvut(dot)cz, pgsql-general(at)postgresql(dot)org
Subject: Re: PL/PGSQL help for getting number of rows matched.
Date: 2003-11-10 14:02:23
Message-ID: 200311101932.23239.mallah@trade-india.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Once again ,

I have different logic based on match,
i need to know a prioi the number of matches.

See the actual code in response to Nigel .

Thanks for your response.

regds
mallah.

On Monday 10 Nov 2003 6:57 pm, Jaime Casanova wrote:
> Maybe you can use a for if there is only one row it will do the job just
> like if there were many rows:
>
> FOR referrer_keys IN SELECT * FROM cs_referrer_keys ORDER BY try_order
> LOOP
> a_output := a_output || '' IF v_'' || referrer_keys.kind || '' LIKE
> ''''''''''
>
> || referrer_keys.key_string || '''''''''' THEN RETURN
>
> ''''''
>
> || referrer_keys.referrer_type || ''''''; END IF;'';
>
> END LOOP;
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-11-10 14:39:32 Re: Temp rows - is it possible?
Previous Message Rajesh Kumar Mallah 2003-11-10 13:59:36 Re: PL/PGSQL help for getting number of rows matched.