Re: BUG #5535: Backslash in condition for LIKE statement is not seen

Поиск
Список
Период
Сортировка
От Jeff Benjamin
Тема Re: BUG #5535: Backslash in condition for LIKE statement is not seen
Дата
Msg-id 6090B22B-3310-4DA0-B3AD-B8B92CB74D74@ivertex.com
обсуждение исходный текст
Ответ на Re: BUG #5535: Backslash in condition for LIKE statement is not seen  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-bugs
Thanks, that works!

On Jul 1, 2010, at 1:34 PM, Kevin Grittner wrote:

> "Jeff Benjamin" <jeff@ivertex.com> wrote:
>
>> Seems one cannot use a backslash character in a LIKE condition.
>
> By default that has special meaning as an escape character.
>
> Try this:
>
> select * from test where pattern like E'\\w%' escape '#';
>
> or this:
>
> select * from test where pattern like E'\\\\w%';
>
> -Kevin

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #5535: Backslash in condition for LIKE statement is not seen
Следующее
От: ola sergatchov
Дата:
Сообщение: Re: BUG #5531: REGEXP_ REPLACE causes connection drop