Re: [GENERAL] interesting PHP/MySQL thread
От | Dennis Gearon |
---|---|
Тема | Re: [GENERAL] interesting PHP/MySQL thread |
Дата | |
Msg-id | 3EF725CA.2060508@cvc.net обсуждение исходный текст |
Ответ на | Re: [GENERAL] interesting PHP/MySQL thread (nolan@celery.tssi.com) |
Ответы |
Re: [GENERAL] interesting PHP/MySQL thread
|
Список | pgsql-advocacy |
Looks like there's some parts of that that would make a good todo. nolan@celery.tssi.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 >
В списке pgsql-advocacy по дате отправления: