summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-03-25 16:41:51 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-03-25 16:41:51 -0400
commitbd1165f1b92ca2e4f877a8aa9bc141c4ff52e203 (patch)
tree27a26f3ab429e010514e95f29c6f3a0a3aa44381 /doc
parentd5ff74d3030380a6f3d606dd14af4ed91409fad0 (diff)
'AS' clauses for expression columns may be omitted
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.tex3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/manual.tex b/doc/manual.tex
index eea0a01a..86fc4843 100644
--- a/doc/manual.tex
+++ b/doc/manual.tex
@@ -1959,6 +1959,7 @@ $$\begin{array}{rrcll}
&&& p,^+ & \textrm{particular columns} \\
\textrm{Pre-projections} & p &::=& t.f & \textrm{one column from a table} \\
&&& t.\{\{c\}\} & \textrm{a record of columns from a table (of kind $\{\mt{Type}\}$)} \\
+ &&& E \; [\mt{AS} \; f] & \textrm{expression column} \\
\textrm{Table names} & t &::=& x & \textrm{constant table name (automatically capitalized)} \\
&&& X & \textrm{constant table name} \\
&&& \{\{c\}\} & \textrm{computed table name (of kind $\mt{Name}$)} \\
@@ -1997,6 +1998,8 @@ $$\begin{array}{rrcll}
Additionally, an SQL expression may be inserted into normal Ur code with the syntax $(\mt{SQL} \; E)$ or $(\mt{WHERE} \; E)$. Similar shorthands exist for other nonterminals, with the prefix $\mt{FROM}$ for $\mt{FROM}$ items and $\mt{SELECT1}$ for pre-queries.
+Unnamed expression columns in $\mt{SELECT}$ clauses are assigned consecutive natural numbers, starting with 1.
+
\subsubsection{DML}
DML commands $D$ are added to the rules for expressions $e$.