grammar.html 2.7 KB
Newer Older
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
<!--
3 4 5
Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
6 7
Initial Developer: H2 Group
-->
8 9
<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>
10
SQL Grammar
11
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
12
<!-- [search] { -->
13 14 15
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
16
<!-- } -->
17 18 19 20

<h1>SQL Grammar</h1>
<h2>Commands (Data Manipulation)</h2>
<c:forEach var="item" items="commandsDML">
21
    <a href="#${item.link}">${item.topic}</a><br />
22 23 24
</c:forEach>
<h2>Commands (Data Definition)</h2>
<c:forEach var="item" items="commandsDDL">
25
    <a href="#${item.link}">${item.topic}</a><br />
26 27 28
</c:forEach>
<h2>Commands (Other)</h2>
<c:forEach var="item" items="commandsOther">
29
    <a href="#${item.link}">${item.topic}</a><br />
30 31 32
</c:forEach>
<h2>Other Grammar</h2>
<c:forEach var="item" items="otherGrammar">
33
    <a href="#${item.link}">${item.topic}</a><br />
34
</c:forEach>
35 36
<h2>System Tables</h2>
<a href="#information_schema">Information Schema</a><br />
37
<a href="#range_table">Range Table</a><br />
38 39

<c:forEach var="item" items="commands">
40
<br />
41
<a name="${item.link}"></a><h3>${item.topic}</h3>
42 43 44 45
<pre>
${item.syntax}
</pre>
<p>
46 47
${item.text}
</p>
48
<b>Example:</b><br />
49
${item.example}
50
<br />
51 52 53
</c:forEach>

<c:forEach var="item" items="otherGrammar">
54
<br />
55
<a name="${item.link}"></a><h3>${item.topic}</h3>
56 57 58 59
<pre>
${item.syntax}
</pre>
<p>
60 61
${item.text}
</p>
62
<b>Example:</b><br />
63
${item.example}
64
<br />
65 66
</c:forEach>

67 68 69 70 71 72 73 74 75 76 77 78 79
<br />
<a name="information_schema"></a><h3>Information Schema</h3>
<p>
The system tables in the schema 'INFORMATION_SCHEMA' contain the meta data
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">
<tr><td>${item.topic}</td><td>${item.syntax}</td></tr>
</c:forEach>
</table>

<br />
80
<a name="range_table"></a><h3>Range Table</h3>
81 82 83 84 85 86 87 88 89
<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>
<pre>
SELECT X FROM SYSTEM_RANGE(1, 10);
</pre>

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