Re: Non case sensitive

Поиск
Список
Период
Сортировка
От Brendon Gleeson
Тема Re: Non case sensitive
Дата
Msg-id 44E07AA0.3080702@gleesonprop.co.za
обсуждение исходный текст
Ответ на Non case sensitive  ("roy simkes" <roysimkes@hotmail.com>)
Список pgsql-novice
roy simkes wrote:
 > Is there a way that select's where clause can be used as insensitive to
the case? I mean:
 > "SELECT * FROM table WHERE field LIKE 'f' " will return every row that
field begins with a "f" or a "F". Without writing " field LIKE 'f' OR field
LIKE 'F' " of course.


try:
"SELECT * FROM table WHERE LOWER(field) LIKE 'f'"

or:
"SELECT * FROM table WHERE LOWER(field) LIKE LOWER(x)" <-- if using
variable "x"

В списке pgsql-novice по дате отправления:

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: Non case sensitive
Следующее
От: "roy simkes"
Дата:
Сообщение: Re: Non case sensitive