Re: Case sensitivity issue

Поиск
Список
Период
Сортировка
От Mitch Vincent
Тема Re: Case sensitivity issue
Дата
Msg-id 001301c13d59$ba31bcd0$1e51000a@mitch
обсуждение исходный текст
Ответ на Case sensitivity issue  (mike7411@earthlink.net (Michael Gay))
Список pgsql-general
SELECT * FROM apples WHERE lower(color) LIKE '%red%';

Make sure that what ever 'red' might be is always lower case (you can pass
it through lower() too, of course)..

-Mitch


----- Original Message -----
From: "Michael Gay" <mike7411@earthlink.net>
To: <pgsql-general@postgresql.org>
Sent: Monday, September 10, 2001 12:02 AM
Subject: [GENERAL] Case sensitivity issue


> If I am doing a command such as
>
> select * from Apples where color like '%red%';
>
> how do I make it case insensitive?
>
> Thanks.
>
> mike
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>


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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: How to implement transaction in plpgsql?
Следующее
От: Andrew Gould
Дата:
Сообщение: Re: count of occurences