Use SGML table to show backslash string escapes, rather than have them
authorBruce Momjian
Thu, 26 Jun 2008 22:24:42 +0000 (22:24 +0000)
committerBruce Momjian
Thu, 26 Jun 2008 22:24:42 +0000 (22:24 +0000)
appear in a paragraph.

Andy Anderson

doc/src/sgml/syntax.sgml

index e677d80d5cec7c902d1f5647a87f340b20d5eef0..0efba278c55b5dc8c74a776ae87f9d4c9493782a 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
  SQL Syntax
@@ -286,19 +286,63 @@ SELECT 'foo'      'bar';
      quote.)
      Within an escape string, a backslash character (\) begins a
      C-like backslash escape sequence, in which the combination
-     of backslash and following character(s) represents a special byte value.
-     \b is a backspace,
-     \f is a form feed,
-     \n is a newline,
-     \r is a carriage return,
-     \t is a tab.
-     Also supported are
-     \digits, where
-     digits represents an octal byte value, and
-     \xhexdigits, where
-     hexdigits represents a hexadecimal byte value.
-     (It is your responsibility that the byte sequences you create are
-     valid characters in the server character set encoding.) Any other
+     of backslash and following character(s) represent a special byte
+     value:
+
+     
+      Backslash Escape Sequences
+      
+      
+       
+        Backslash Escape Sequence
+        Interpretation
+       
+      
+
+      
+       
+        \b
+        backspace
+       
+       
+        \f
+        form feed
+       
+       
+        \n
+        newline
+       
+       
+        \r
+        carriage return
+       
+       
+        \t
+        tab
+       
+       
+        
+         \o,
+         \oo,
+         \ooo
+         (o = 0 - 7)
+        
+        octal byte value
+       
+       
+        
+         \xh,
+         \xhh
+         (h = 0 - 9, A - F)
+        
+        hexadecimal byte value
+       
+      
+      
+     
+
+     It is your responsibility that the byte sequences you create are
+     valid characters in the server character set encoding. Any other
      character following a backslash is taken literally. Thus, to
      include a backslash character, write two backslashes (\\).
      Also, a single quote can be included in an escape string by writing