-
+
Functions and Operators
- Note 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 (assuming escape
- string syntax is used). Thus, writing a pattern
- that actually matches a literal backslash means writing four backslashes
- in the statement. You can avoid this by selecting a different escape
- character with ESCAPE; then a backslash is not special
- to LIKE anymore. (But it is still special to the string
+ Note 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 (assuming escape string syntax is used, see
+ ). Thus, writing a pattern that
+ actually matches a literal backslash means writing four backslashes in the
+ statement. You can avoid this by selecting a different escape character
+ with ESCAPE; then a backslash is not special to
+ LIKE anymore. (But it is still special to the string
literal parser, so you still need two of them.)
meaning in
PostgreSQL> string literals.
To write a pattern constant that contains a backslash,
you must write two backslashes in the statement, assuming escape
- string syntax is used.
+ string syntax is used (see ).