Re: Case sensitivity when searching for and displaying data

Поиск
Список
Период
Сортировка
Искать
От
Robby Russell
Тема
Re: Case sensitivity when searching for and displaying data
Дата
Msg-id
3F567742.9040205@commandprompt.com
Ответ на
Список
Дерево обсуждения
Case sensitivity when searching for and displaying data Lynna Landstreet <lynna@gallery44.org>
Re: Interview questions? "Brion Wikes" <brion@alamedanet.net>
Re: Case sensitivity when searching for and displaying data Rod Taylor <rbt@rbt.ca>
Re: Case sensitivity when searching for and displaying data Robby Russell <rrussell@commandprompt.com>
Lynna Landstreet wrote:
> Hello,
> 
> I've gotten a simple PHP search page working on the artists database that
> I've been developing these past few months, but I'm running into a few
> problems with PostgreSQL's case sensitivity.
> 

PostgreSQL has regular expression capability.

Try this with case-INsensitivity

SELECT * FROM table WHERE name ~* 'nAmE';

If you want it without insensitive...remove the asterisk.

-Robby

-- 
Robby Russell,  |  Sr. Administrator / Lead Programmer
Command Prompt, Inc.   |  http://www.commandprompt.com
rrussell@commandprompt.com | Telephone: (503) 222.2783

В списке pgsql-php по дате отправления
От: Lynna Landstreet
Дата:
От: Rod Taylor
Дата:
FAQ