Re: [SQL] Character type name?? How to lower case it?

From: Remigiusz Sokolowski <rems(at)gdansk(dot)sprint(dot)pl>
To: Douglas Nichols <dnichols(at)fhcrc(dot)org>
Cc: Guido Goldstein <Guido(dot)Goldstein(at)t-online(dot)de>, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Character type name?? How to lower case it?
Date: 1999-02-01 08:10:24
Message-ID: Pine.GS4.4.02A.9902010905180.6052-100000@netra.gdansk.sprint.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>
> 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(at)gdansk(dot)sprint(dot)pl * *
-----------------------------------------------------------------*****----------

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Remigiusz Sokolowski 1999-02-01 08:50:57 Re: [SQL] index on aggregate function
Previous Message Remigiusz Sokolowski 1999-02-01 07:40:03 Re: [SQL] Character type name?? How to lower case it? (fwd)