Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] interesting PHP/MySQL thread

From: Dennis Gearon <gearond(at)cvc(dot)net>
To: nolan(at)celery(dot)tssi(dot)com
Cc: The Hermit Hacker <scrappy(at)postgresql(dot)org>,Jan Wieck <JanWieck(at)Yahoo(dot)com>,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 16:07:38
Message-ID: 3EF725CA.2060508@cvc.net (view raw or flat)
Thread:
Lists: pgsql-advocacypgsql-docspgsql-general
Looks like there's some parts of that that would make a good todo.

nolan(at)celery(dot)tssi(dot)com wrote:

>>>Personally, if I want case insensitivity, I'll WRITE IT INTO THE CODE,
>>>but I can see how some people might think that 'NOLAN', 'Nolan' and
>>>'nolan' should be considered as the same data.
>>
>>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. 
> 
> Also, unlike PostgreSQL (at least in 7.3), if you define an index on
> the column, mysql appears to use it for LIKE queries.
> 
>    "SELECT * FROM table WHERE field LIKE 'nolan%';" 
> 
> is very fast in mysql but not in 7.3, and even non-anchored LIKE searches
> in mysql appear to be using the index.
>   
>    "SELECT * FROM table WHERE field LIKE '%nolan%';" 
> 
> executes considerably faster with an index on field than without one.
> --
> Mike Nolan
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
>                http://archives.postgresql.org
> 


In response to

Responses

pgsql-docs by date

Next:From: Dennis GearonDate: 2003-06-23 16:36:08
Subject: Re: [GENERAL] interesting PHP/MySQL thread
Previous:From: Reuben D. BudiardjaDate: 2003-06-23 15:48:35
Subject: Re: [pgsql-advocacy] interesting PHP/MySQL thread

pgsql-advocacy by date

Next:From: Hans-Jürgen SchönigDate: 2003-06-23 16:24:32
Subject: dblink for Oracle - question ...
Previous:From: Reuben D. BudiardjaDate: 2003-06-23 15:48:35
Subject: Re: [pgsql-advocacy] interesting PHP/MySQL thread

pgsql-general by date

Next:From: Nailah OgeerDate: 2003-06-23 16:13:58
Subject: SHM_QUEUE
Previous:From: Reuben D. BudiardjaDate: 2003-06-23 15:48:35
Subject: Re: [pgsql-advocacy] interesting PHP/MySQL thread

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group