diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-03-25 16:41:51 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-03-25 16:41:51 -0400 |
commit | ff8b80dbb7cc9e5b8a48efbbf6f2f1009e1ab68e (patch) | |
tree | 27a26f3ab429e010514e95f29c6f3a0a3aa44381 /doc | |
parent | a987a1ae26ee20ba32cfb85a0d38797067619105 (diff) |
'AS' clauses for expression columns may be omitted
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.tex | 3 |
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$. |