| От | Bruno Wolff III |
|---|---|
| Тема | Re: Case-sensitive |
| Дата | |
| Msg-id | 20070125174558.GA7220@wolff.to обсуждение исходный текст |
| Ответ на | Case-sensitive ("Alexander B." <burbello3000@yahoo.com.br>) |
| Список | pgsql-admin |
On Thu, Jan 25, 2007 at 08:52:28 -0200,
"Alexander B." <burbello3000@yahoo.com.br> wrote:
> Hi,
>
> One developer asked me about case-sensitive, if its possible disable
> Postgres not consider when using comparative functions.
> Eg.:
> select * from people
> where upper(name) like upper('A%');
>
> Is there any parameter that don't take in account case-sensitive, or any
> other way to treat??
You can use ilike, though using upper (on the column, not the pattern) has the
advantage that you can create functional indexes that can be used to speed
things up in some cases. There is also an operator for doing case insensitive
regular expression matching.
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера