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

From: "Jaime Casanova" <el_vigia_ec(at)hotmail(dot)com>
To: 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 13:27:42
Message-ID: BAY8-F42gXOoE4zyYJO00000b70@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rajesh Kumar Mallah 2003-11-10 13:48:27 Re: PL/PGSQL help for getting number of rows matched.
Previous Message Nigel J. Andrews 2003-11-10 12:35:19 Re: PL/PGSQL help for getting number of rows matched.