Escape wildcard problems.

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема Escape wildcard problems.
Дата
Msg-id 482E80323A35A54498B8B70FF2B87980039B9A3B4A@azsmsx504.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: Escape wildcard problems.  (Sam Mason <sam@samason.me.uk>)
Re: Escape wildcard problems.  (Alan Hodgson <ahodgson@simkin.ca>)
Список pgsql-general

I read in the docs (section 9.7.1) that the backslash... \ ... is the default escape char to use in “like” expressions.  Yet when I try it, it doesn’t seem to work the ay I expect.  Here’s an example...

 

select name from templates where name like ‘%\_cont\_%’;

 

          name

----------------------------------

cgidvcontrol

x8idvcontrol

etc....

 

I would expect to NOT see these because the “cont” is not preceded by and followed by an underscore (because I escaped them with \).

 

Please advise.

 

Thanks

-dave

 

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

Предыдущее
От: Sam Mason
Дата:
Сообщение: Re: Query m:n-Combination
Следующее
От: Michelle Konzack
Дата:
Сообщение: Re: Annoying Reply-To