| От | tjk@tksoft.com |
|---|---|
| Тема | Re: Case Insensitive Queries |
| Дата | |
| Msg-id | 200105291523.IAA23977@smtp3.tksoft.com обсуждение |
| Ответ на | Case Insensitive Queries (Mark <mark@zserve.com>) |
| Список | pgsql-sql |
select * from account where lower(username) = lower('test');
Troy
>
> Is it possible to execute a query using a where clause that allows case
> insensitive comparison between a field and text.
>
> For example:
>
> select * from account where username = 'test'
>
> where username could be 'Test', which would be a match. As is, this
> compare is case sensitive.
>
> grep'd the source, but stricmp is only used for keywords and not actual
> column data.
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Mark
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера