grammar.html 7.5 KB
Newer Older
1 2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
3
Copyright 2004-2018 H2 Group. Multiple-Licensed under the MPL 2.0, Version 1.0,
4 5 6 7
and under the Eclipse Public License, Version 1.0
Initial Developer: H2 Group
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
8
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
Thomas Mueller's avatar
Thomas Mueller committed
9
<meta name="viewport" content="width=device-width, initial-scale=1" />
10
<title>
11
SQL Grammar
12 13
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
14 15 16 17 18 19 20
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->

<h1>SQL Grammar</h1>
21
<h2 id="grammar_index">Index</h2>
Thomas Mueller's avatar
Thomas Mueller committed
22
<h3>Commands (Data Manipulation)</h3>
23
<!-- syntax-start
24
<p class="notranslate">
25 26 27
<c:forEach var="item" items="commandsDML">
    <a href="#${item.link}">${item.topic}</a><br />
</c:forEach>
28
</p>
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
syntax-end -->
<!-- railroad-start -->
<table class="notranslate index">
    <tr>
        <td class="index">
            <c:forEach var="item" items="commandsDML-0">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="commandsDML-1">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="commandsDML-2">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td>
    </tr>
</table>
<!-- railroad-end -->
49

Thomas Mueller's avatar
Thomas Mueller committed
50
<h3>Commands (Data Definition)</h3>
51
<!-- syntax-start
52
<p class="notranslate">
53 54 55
<c:forEach var="item" items="commandsDDL">
    <a href="#${item.link}">${item.topic}</a><br />
</c:forEach>
56
</p>
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
syntax-end -->
<!-- railroad-start -->
<table class="notranslate index">
    <tr>
        <td class="index">
            <c:forEach var="item" items="commandsDDL-0">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="commandsDDL-1">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="commandsDDL-2">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td>
    </tr>
</table>
<!-- railroad-end -->
77

Thomas Mueller's avatar
Thomas Mueller committed
78
<h3>Commands (Other)</h3>
79
<!-- syntax-start
80
<p class="notranslate">
81 82 83
<c:forEach var="item" items="commandsOther">
    <a href="#${item.link}">${item.topic}</a><br />
</c:forEach>
84
</p>
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
syntax-end -->
<!-- railroad-start -->
<table class="notranslate index">
    <tr>
        <td class="index">
            <c:forEach var="item" items="commandsOther-0">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="commandsOther-1">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="commandsOther-2">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td>
    </tr>
</table>
<!-- railroad-end -->
105

106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
<h3>Datetime fields</h3>
<!-- syntax-start
<p class="notranslate">
<c:forEach var="item" items="datetimeFields">
    <a href="#${item.link}">${item.topic}</a><br />
</c:forEach>
</p>
syntax-end -->
<!-- railroad-start -->
<table class="notranslate index">
    <tr>
        <td class="index">
            <c:forEach var="item" items="datetimeFields-0">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="datetimeFields-1">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="datetimeFields-2">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td>
    </tr>
</table>
<!-- railroad-end -->

Thomas Mueller's avatar
Thomas Mueller committed
134
<h3>Other Grammar</h3>
135
<!-- syntax-start
136
<p class="notranslate">
137
<c:forEach var="item" items="otherGrammar">
138
    <a href="#${item.link}" >${item.topic}</a><br />
139
</c:forEach>
140
</p>
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
syntax-end -->
<!-- railroad-start -->
<table class="notranslate index">
    <tr>
        <td class="index">
            <c:forEach var="item" items="otherGrammar-0">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="otherGrammar-1">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td><td class="index">
            <c:forEach var="item" items="otherGrammar-2">
                <a href="#${item.link}" >${item.topic}</a><br />
            </c:forEach>
        </td>
    </tr>
</table>
<!-- railroad-end -->
161

Thomas Mueller's avatar
Thomas Mueller committed
162 163 164 165 166
<!-- railroad-start -->
<h2>Details</h2>
<p>Click on the header to switch between railroad diagram and BNF.</p>
<!-- railroad-end -->

167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
<h2>Commands (Data Manipulation)</h2>
<c:forEach var="item" items="commandsDML">
<h3 id="${item.link}" class="notranslate" onclick="switchBnf(this)">${item.topic}</h3>
<!-- railroad-start -->
<pre name="bnf" style="display: none">
${item.syntax}
</pre>
<div name="railroad">
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>${item.text}</p>
<p>Example:</p>
<p class="notranslate">
${item.example}</p>
</c:forEach>

<h2>Commands (Data Definition)</h2>
<c:forEach var="item" items="commandsDDL">
Thomas Mueller's avatar
Thomas Mueller committed
191
<h3 id="${item.link}" class="notranslate" onclick="switchBnf(this)">${item.topic}</h3>
192
<!-- railroad-start -->
Thomas Mueller's avatar
Thomas Mueller committed
193 194 195 196
<pre name="bnf" style="display: none">
${item.syntax}
</pre>
<div name="railroad">
197
${item.railroad}
Thomas Mueller's avatar
Thomas Mueller committed
198
</div>
199 200
<!-- railroad-end -->
<!-- syntax-start
201
<pre>
202 203
${item.syntax}
</pre>
204
syntax-end -->
205
<p>${item.text}</p>
206 207 208
<p>Example:</p>
<p class="notranslate">
${item.example}</p>
209 210
</c:forEach>

211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
<h2>Commands (Other)</h2>
<c:forEach var="item" items="commandsOther">
<h3 id="${item.link}" class="notranslate" onclick="switchBnf(this)">${item.topic}</h3>
<!-- railroad-start -->
<pre name="bnf" style="display: none">
${item.syntax}
</pre>
<div name="railroad">
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>${item.text}</p>
<p>Example:</p>
<p class="notranslate">
${item.example}</p>
</c:forEach>

<h2>Datetime fields</h2>
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
<c:forEach var="item" items="datetimeFields">
<h3 id="${item.link}" class="notranslate" onclick="switchBnf(this)">${item.topic}</h3>
<!-- railroad-start -->
<pre name="bnf" style="display: none">
${item.syntax}
</pre>
<div name="railroad">
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>${item.text}</p>
<p>Example:</p>
<p class="notranslate">
${item.example}</p>
</c:forEach>

255
<h2>Other Grammar</h2>
256
<c:forEach var="item" items="otherGrammar">
Thomas Mueller's avatar
Thomas Mueller committed
257
<h3 id="${item.link}" class="notranslate" onclick="switchBnf(this)">${item.topic}</h3>
258 259 260 261
<!-- railroad-start -->
${item.railroad}
<!-- railroad-end -->
<!-- syntax-start
262
<pre>
263 264
${item.syntax}
</pre>
265
syntax-end -->
266
<p>${item.text}</p>
267
<p>Example:</p>
268
<p class="notranslate">${item.example}</p>
269 270
</c:forEach>

Thomas Mueller's avatar
Thomas Mueller committed
271 272
<!--[if lte IE 7]><script language="javascript">switchBnf(null);</script><![endif]-->

273
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>