Re: backslashes in queries containing LIKE

Поиск
Список
Период
Сортировка
От Mickael Faivre-Macon
Тема Re: backslashes in queries containing LIKE
Дата
Msg-id f132f7e305012608463b3f6325@mail.gmail.com
обсуждение исходный текст
Ответ на Re: backslashes in queries containing LIKE  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Hi Michael,

Thank you for your reply.

We had read the LIKE doc but obviously missing the fact that

"the backslash already has a special meaning in string
literals, so to write a pattern constant that contains a backslash you
must write two backslashes in an SQL statement. Thus, writing a
pattern that actually matches a literal backslash means writing four
backslashes in the statement. "

Mickael.

--

See the "Pattern Matching" section in the "Functions and Operators"
chapter of the documentation:

http://www.postgresql.org/docs/8.0/static/functions-matching.html

The documentation under "LIKE" discusses issues regarding the escape
character (the backslash by default).

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: "Frank D. Engel, Jr."
Дата:
Сообщение: Re: Splitting queries across servers
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Partitioning Postgresql