grammar.html 3.1 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">
<!--
Thomas Mueller's avatar
Thomas Mueller committed
3
Copyright 2004-2009 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
SQL Grammar
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [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>
<h2>Commands (Data Manipulation)</h2>
20
<p class="notranslate">
21 22 23
<c:forEach var="item" items="commandsDML">
    <a href="#${item.link}">${item.topic}</a><br />
</c:forEach>
24 25
</p>

26
<h2>Commands (Data Definition)</h2>
27
<p class="notranslate">
28 29 30
<c:forEach var="item" items="commandsDDL">
    <a href="#${item.link}">${item.topic}</a><br />
</c:forEach>
31 32
</p>

33
<h2>Commands (Other)</h2>
34
<p class="notranslate">
35 36 37
<c:forEach var="item" items="commandsOther">
    <a href="#${item.link}">${item.topic}</a><br />
</c:forEach>
38 39
</p>

40
<h2>Other Grammar</h2>
41
<p class="notranslate">
42
<c:forEach var="item" items="otherGrammar">
43
    <a href="#${item.link}" >${item.topic}</a><br />
44
</c:forEach>
45 46
</p>

47
<h2>System Tables</h2>
48
<p class="notranslate">
49 50
<a href="#information_schema">Information Schema</a><br />
<a href="#range_table">Range Table</a><br />
51
</p>
52 53

<c:forEach var="item" items="commands">
54
<h3 id="${item.link}" class="notranslate">${item.topic}</h3>
55 56 57 58
<!-- railroad-start -->
${item.railroad}
<!-- railroad-end -->
<!-- syntax-start
59
<pre>
60 61
${item.syntax}
</pre>
62
syntax-end -->
63 64 65
<p>${item.text}</p>
<b>Example:</b>
<p class="notranslate">${item.example}</p>
66 67 68
</c:forEach>

<c:forEach var="item" items="otherGrammar">
69
<h3 id="${item.link}" class="notranslate">${item.topic}</h3>
70 71 72 73
<!-- railroad-start -->
${item.railroad}
<!-- railroad-end -->
<!-- syntax-start
74
<pre>
75 76
${item.syntax}
</pre>
77
syntax-end -->
78 79 80
<p>${item.text}</p>
<b>Example:</b>
<p class="notranslate">${item.example}</p>
81 82
</c:forEach>

83
<h3 id="information_schema" class="notranslate">Information Schema</h3>
84
<p>
85
The system tables in the schema <code>INFORMATION_SCHEMA</code> contain the meta data
86 87 88 89
of all tables in the database as well as the current settings.
</p>
<table><tr><th>Table</th><th>Columns</th></tr>
<c:forEach var="item" items="informationSchema">
90 91 92 93
<tr class="notranslate">
    <td>${item.topic}</td>
    <td>${item.syntax}</td>
</tr>
94 95 96
</c:forEach>
</table>

97
<h3 id="range_table" class="notranslate">Range Table</h3>
98 99 100 101 102
<p>
The range table is a dynamic system table that contains all values from a start to an end value.
The table contains one column called X. Both the start and end values are included in the result.
The table is used as follows:
</p>
103
<pre>
104 105 106 107
SELECT X FROM SYSTEM_RANGE(1, 10);
</pre>

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