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>)
Список pgsql-php
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
Дата:
Сообщение: Case sensitivity when searching for and displaying data
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: Case sensitivity when searching for and displaying data