1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.79 2001/11/17 22:20:33 tgl Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.80 2001/11/18 21:17:10 tgl Exp $
3
3
Postgres documentation
4
4
-->
5
5
@@ -1228,8 +1228,19 @@ Postgres documentation
1228
1228
<para>
1229
1229
Note that the backslash already has a special meaning in string
1230
1230
literals, so to write a pattern constant that contains a backslash
1231
- you must write two backslashes in the query. You can avoid this by
1232
- selecting a different escape character with <literal>ESCAPE</literal>.
1231
+ you must write two backslashes in the query. Thus, writing a pattern
1232
+ that actually matches a literal backslash means writing four backslashes
1233
+ in the query. You can avoid this by selecting a different escape
1234
+ character with <literal>ESCAPE</literal>; then backslash isn't special
1235
+ to <function>LIKE</> anymore. (But it's still special to the string
1236
+ literal parser, so you still need two of them.)
1237
+ </para>
1238
+
1239
+ <para>
1240
+ It's also possible to select no escape character by writing
1241
+ <literal>ESCAPE ''</literal>. In this case there is no way to
1242
+ turn off the special meaning of underscore and percent signs in
1243
+ the pattern.
1233
1244
</para>
1234
1245
1235
1246
<para>
@@ -1245,7 +1256,7 @@ Postgres documentation
1245
1256
<function>ILIKE</function>. There are also
1246
1257
<literal>!~~</literal> and <literal>!~~*</literal> operators that
1247
1258
represent <function>NOT LIKE</function> and <function>NOT
1248
- ILIKE</function>. All of theseare also
1259
+ ILIKE</function>. All of theseoperators are
1249
1260
<productname>Postgres</productname>-specific.
1250
1261
</para>
1251
1262
</sect2>