Escape string for LIKE op

Поиск
Список
Период
Сортировка
От Robert James
Тема Escape string for LIKE op
Дата
Msg-id CAGYyBggb1uvuFRBE4=AJaUtNhohU2qFfaUT4iYXAta6_YpFkWw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Escape string for LIKE op  (Jeff Janes <jeff.janes@gmail.com>)
Re: Escape string for LIKE op  (Vik Fearing <vik.fearing@dalibo.com>)
Список pgsql-general
How can I escape a string for LIKE operations?

I want to do:

SELECT * FROM t WHERE a LIKE b || '%'

But I want be to interpreted literally.  If b is 'The 7% Solution', I
don't want that '%' to be wildcard.  I can't find an appropriate
function to escape it and any other potential wildcards for LIKE
clauses.


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

Предыдущее
От: Andrew Berman
Дата:
Сообщение: Re: Streaming Replication Randomly Locking Up
Следующее
От: Darren Duncan
Дата:
Сообщение: Re: Immediate Constraints