summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-08-13 01:12:51 +0000
committerRobert Haas <rhaas@postgresql.org>2010-08-13 01:12:51 +0000
commit5be77ca563e8dce4fbaa15387186de8448a7a413 (patch)
tree1ffeb61b91db53313c9c93b620f6a2925f046df5
parented3ea3fa0c02a88753c5a162a1fe94e67604b627 (diff)
Reorder docs on lexical structure slightly for clarity.
Thom Brown
-rw-r--r--doc/src/sgml/syntax.sgml14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml
index 96817c05cf5..3d108e1e46b 100644
--- a/doc/src/sgml/syntax.sgml
+++ b/doc/src/sgml/syntax.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.147.2.4 2010/08/12 02:04:07 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.147.2.5 2010/08/13 01:12:51 rhaas Exp $ -->
<chapter id="sql-syntax">
<title>SQL Syntax</title>
@@ -47,12 +47,6 @@
special character is adjacent to some other token type).
</para>
- <para>
- Additionally, <firstterm>comments</firstterm> can occur in SQL
- input. They are not tokens, they are effectively equivalent to
- whitespace.
- </para>
-
<para>
For example, the following is (syntactically) valid SQL input:
<programlisting>
@@ -66,6 +60,12 @@ INSERT INTO MY_TABLE VALUES (3, 'hi there');
</para>
<para>
+ Additionally, <firstterm>comments</firstterm> can occur in SQL
+ input. They are not tokens, they are effectively equivalent to
+ whitespace.
+ </para>
+
+ <para>
The SQL syntax is not very consistent regarding what tokens
identify commands and which are operands or parameters. The first
few tokens are generally the command name, so in the above example