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

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: BUG #5535: Backslash in condition for LIKE statement is not seen
Дата
Msg-id
4C2CB5A00200002500032F43@gw.wicourts.gov
Ответ на
Список
Дерево обсуждения
BUG #5535: Backslash in condition for LIKE statement is not seen "Jeff Benjamin" <jeff@ivertex.com>
Re: BUG #5535: Backslash in condition for LIKE statement is not seen "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: BUG #5535: Backslash in condition for LIKE statement is not seen Jeff Benjamin <jeff@ivertex.com>
"Jeff Benjamin"  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 по дате отправления
От: Jeff Benjamin
Дата:
От: Jeff Benjamin
Дата:
FAQ