From: Remigiusz Sokolowski <rems@gdansk.sprint.pl>
To: Douglas Nichols <dnichols@fhcrc.org>
Cc: Guido Goldstein <Guido.Goldstein@t-online.de>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Character type name?? How to lower case it?
Date: Mon, 1 Feb 1999 09:10:24 +0100 (MET)
Message-ID: <Pine.GS4.4.02A.9902010905180.6052-100000@netra.gdansk.sprint.pl> (raw)
In-Reply-To: <Pine.LNX.3.96.990129114105.2389A-100000@dnichols.fhcrc.org>
>
> Actually I was talking about several fields, but to make it worst I really
> do not know how many fields. So I was making a quoted set of strings to
> put together at sql time to say: is filed1 in (...) how ever long (...) is
> An example wuld be:
>
> a.attname in ('hello','goodbye','baisc','perl')
>
> but I do not want to have to know the case a.attname although I can
> manipulate (..) to either.
I understand, that You have control under ('your','strings',...).
So first:
- You can just create loop for adding "OR myFld='string'"
- You can create loop for syntax with
where relname ~* 'pg_class|pg_attribute' for adding "|string" to Your
cases
Rem
-------------------------------------------------------------------*------------
Remigiusz Sokolowski e-mail: rems@gdansk.sprint.pl * *
-----------------------------------------------------------------*****----------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: rems@gdansk.sprint.pl, dnichols@fhcrc.org, Guido.Goldstein@t-online.de
Subject: Re: [SQL] Character type name?? How to lower case it?
In-Reply-To: <Pine.GS4.4.02A.9902010905180.6052-100000@netra.gdansk.sprint.pl>
References: <Pine.LNX.3.96.990129114105.2389A-100000@dnichols.fhcrc.org> <Pine.GS4.4.02A.9902010905180.6052-100000@netra.gdansk.sprint.pl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox