From: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
---|---|
To: | Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my> |
Cc: | nolan(at)celery(dot)tssi(dot)com, The Hermit Hacker <scrappy(at)postgresql(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Josh Berkus <josh(at)agliodbs(dot)com>, Joe Conway <mail(at)joeconway(dot)com>, Advocacy PostgreSQL <pgsql-advocacy(at)postgresql(dot)org>, PostgreSQL-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] interesting PHP/MySQL thread |
Date: | 2003-06-23 12:21:44 |
Message-ID: | 3EF6F0D8.9070408@Yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-docs pgsql-general |
Lincoln Yeoh wrote:
> At 12:33 AM 6/23/2003 -0500, nolan(at)celery(dot)tssi(dot)com wrote:
>> >
>> > Oh, you mean like "SELECT * FROM table WHERE field ~* 'nolan';"?
>>
>>No, I mean as in "SELECT * FROM table WHERE field = 'nolan';"
>>
>>That will match values with any combination of upper and lower case
>>letters that fold to 'nolan': 'Nolan', 'NOLAN', etc.
>
> For me that's a matter of taste. I prefer to use = for case sensitive and
> lower(field)=lower('data') for case insensitive. I wonder if there is a
> difference between using lower vs upper for case insensitivity but I've
> never bothered to look deeply into it.
In some character sets there might be. The German sz-ligature for
example has no upper case equivalent, and in turkish the upper cases of
i and y with two dots are exchanged.
I prefer your example too and since we have functional indexes, it
doesn't affect performance at all.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
From | Date | Subject | |
---|---|---|---|
Next Message | scott.marlowe | 2003-06-23 13:22:40 | Re: [GENERAL] interesting PHP/MySQL thread |
Previous Message | The Hermit Hacker | 2003-06-23 11:33:05 | Re: [GENERAL] interesting PHP/MySQL thread |
From | Date | Subject | |
---|---|---|---|
Next Message | Lincoln Yeoh | 2003-06-23 14:23:23 | Re: [GENERAL] interesting PHP/MySQL thread |
Previous Message | The Hermit Hacker | 2003-06-23 11:33:05 | Re: [GENERAL] interesting PHP/MySQL thread |
From | Date | Subject | |
---|---|---|---|
Next Message | scott.marlowe | 2003-06-23 13:22:40 | Re: [GENERAL] interesting PHP/MySQL thread |
Previous Message | Hubert Lubaczewski | 2003-06-23 11:47:46 | Re: trimming functions. |