|
1 | 1 | <!-- |
2 | | -$PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.99 2004/12/23 05:37:40 tgl Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.100 2005/06/02 01:23:08 momjian Exp $ |
3 | 3 | --> |
4 | 4 |
|
5 | 5 | <chapter id="sql-syntax"> |
@@ -254,17 +254,18 @@ UPDATE "my_table" SET "a" = 5; |
254 | 254 |
|
255 | 255 | <para> |
256 | 256 | Another <productname>PostgreSQL</productname> extension is that |
257 | | - C-style backslash escapes are available: |
258 | | - <literal>\b</literal> is a backspace, <literal>\f</literal> is a |
259 | | - form feed, <literal>\n</literal> is a newline, |
260 | | - <literal>\r</literal> is a carriage return, <literal>\t</literal> |
261 | | - is a tab, and <literal>\<replaceable>xxx</replaceable></literal>, |
262 | | - where <replaceable>xxx</replaceable> is an octal number, is a |
263 | | - byte with the corresponding code. (It is your responsibility |
264 | | - that the byte sequences you create are valid characters in the |
265 | | - server character set encoding.) Any other character following a |
266 | | - backslash is taken literally. Thus, to include a backslash in a |
267 | | - string constant, write two backslashes. |
| 257 | + C-style backslash escapes are available: <literal>\b</literal> is a |
| 258 | + backspace, <literal>\f</literal> is a form feed, |
| 259 | + <literal>\n</literal> is a newline, <literal>\r</literal> is a |
| 260 | + carriage return, <literal>\t</literal> is a tab. Also supported is |
| 261 | + <literal>\<replaceable>digits</replaceable></literal>, where |
| 262 | + <replaceable>ddd</replaceable> represents an octal byte value, and |
| 263 | + <literal>\x<replaceable>hexdigits</replaceable></literal>, where |
| 264 | + <replaceable>hexdigits</replaceable> represents a hexadecimal byte value. |
| 265 | + (It is your responsibility that the byte sequences you create are |
| 266 | + valid characters in the server character set encoding.) Any other |
| 267 | + character following a backslash is taken literally. Thus, to |
| 268 | + include a backslash in a string constant, write two backslashes. |
268 | 269 | </para> |
269 | 270 |
|
270 | 271 | <para> |
|
0 commit comments