提交 f504aaa1 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation (add "viewport")

上级 fcf0c256
......@@ -5,9 +5,13 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Advanced
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,13 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Architecture
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,13 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Build
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,7 +5,10 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
H2 Database Engine
</title>
<style type="text/css">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Data Types
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Downloads
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Frequently Asked Questions
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Features
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......@@ -775,7 +778,7 @@ the INIT property. Note that multiple commands may be passed to INIT, but the se
must be escaped, as in the example below.
</p>
<pre>
String url = "jdbc:h2:mem:test;INIT=runscript from '~/create.sql'\\;runscript from '~/populate.sql'";
String url = "jdbc:h2:mem:test;INIT=runscript from '~/create.sql'\\;runscript from '~/init.sql'";
</pre>
<p>
Please note the double backslash is only required in a Java or properties file.
......@@ -783,7 +786,7 @@ In a GUI, or in an XML file, only one backslash is required:
</p>
<pre>
&lt;property name="url" value=
"jdbc:h2:mem:test;INIT=create schema if not exists test\;runscript from '~/sql/populate.sql';DB_CLOSE_DELAY=-1"
"jdbc:h2:mem:test;INIT=create schema if not exists test\;runscript from '~/sql/init.sql'"
/&gt;
</pre>
<p>
......@@ -1659,7 +1662,8 @@ public static class MyTableEngine implements org.h2.api.TableEngine {
</pre>
and then create the table from SQL like this:
<pre>
CREATE TABLE TEST(ID INT, NAME VARCHAR) ENGINE "acme.MyTableEngine";
CREATE TABLE TEST(ID INT, NAME VARCHAR)
ENGINE "acme.MyTableEngine";
</pre>
</p>
<p>
......
......@@ -5,6 +5,7 @@ Initial Developer: H2 Group
-->
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>Fragments</title>
<!-- [search] { -->
......
......@@ -5,6 +5,7 @@ Initial Developer: H2 Group
-->
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>H2 Database Engine</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<script type="text/javascript">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Functions
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
SQL Grammar
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
History
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Installation
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
JaQu
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
License
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......@@ -58,9 +61,12 @@ and list all open source libraries, each one with its license and disclaimer.
For H2, a simple solution is to copy the following text below. You may also include a copy of the complete license.
</p>
<pre>
This software contains unmodified binary redistributions for H2 database engine (http://www.h2database.com/),
which is dual licensed and available under the MPL 2.0 (Mozilla Public License) or under the EPL 1.0 (Eclipse Public License).
An original copy of the license agreement can be found at: http://www.h2database.com/html/license.html
This software contains unmodified binary redistributions for
H2 database engine (http://www.h2database.com/),
which is dual licensed and available under the MPL 2.0
(Mozilla Public License) or under the EPL 1.0 (Eclipse Public License).
An original copy of the license agreement can be found at:
http://www.h2database.com/html/license.html
</pre>
<h2 id="mpl2">Mozilla Public License Version 2.0</h2>
......@@ -150,8 +156,9 @@ An original copy of the license agreement can be found at: http://www.h2database
<p>If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.</p>
<h3>Exhibit A - Source Code Form License Notice</h3>
<pre>
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0
This Source Code Form is subject to the terms of the Mozilla
Public License, v. 2.0. If a copy of the MPL was not distributed
with this file, you can obtain one at http://mozilla.org/MPL/2.0
</pre>
<p>If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.</p>
<p>You may add additional accurate notices of copyright ownership.</p>
......
......@@ -5,9 +5,12 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
H2 In Use and Links
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,11 +5,14 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<meta name="description" content="H2 is free SQL database written in Java"/>
<title>
H2 Database Engine
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,11 +5,14 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="description" content="H2 is free SQL database written in Java"/>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<meta name="description" content="H2 is free SQL database written in Java" />
<title>
H2 Database Engine
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<link rel="alternate" type="application/atom+xml" title="H2 Newsfeed (Atom)" href="http://www.h2database.com/html/newsfeed-atom.xml" />
<link rel="alternate" type="application/rss+xml" title="H2 Newsfeed (RSS)" href="http://www.h2database.com/html/newsfeed-rss.xml" />
<!-- [search] { -->
......
......@@ -5,9 +5,13 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
MVStore
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,13 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Performance
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......@@ -608,7 +612,7 @@ following profiling data (results vary):
-----------------------------------------
-- self accu time count result sql
-- 62% 62% 158 1000 1000 INSERT INTO TEST VALUES(?, ?);
-- 37% 100% 93 1 0 CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255));
-- 37% 100% 93 1 0 CREATE TABLE TEST(ID INT PRIMARY KEY...
-- 0% 100% 0 1 0 DROP TABLE IF EXISTS TEST;
-- 0% 100% 0 1 0 SET TRACE_LEVEL_FILE 3;
</pre>
......@@ -713,7 +717,8 @@ then the value of this column is the row id, otherwise the database generates th
There is a (non-standard) way to access the row id: using the <code>_ROWID_</code> pseudo-column:
</p>
<pre>
CREATE TABLE ADDRESS(FIRST_NAME VARCHAR, NAME VARCHAR, CITY VARCHAR, PHONE VARCHAR);
CREATE TABLE ADDRESS(FIRST_NAME VARCHAR,
NAME VARCHAR, CITY VARCHAR, PHONE VARCHAR);
INSERT INTO ADDRESS VALUES('John', 'Miller', 'Berne', '123 456 789');
INSERT INTO ADDRESS VALUES('Philip', 'Jones', 'Berne', '123 012 345');
SELECT _ROWID_, * FROM ADDRESS;
......@@ -769,7 +774,9 @@ This index is also used when reading all rows, sorted by the indexed columns.
However, if only the first name is known, then this index is not used:
</p>
<pre>
EXPLAIN SELECT PHONE FROM ADDRESS WHERE CITY = 'Berne' AND NAME = 'Miller' AND FIRST_NAME = 'John';
EXPLAIN SELECT PHONE FROM ADDRESS
WHERE CITY = 'Berne' AND NAME = 'Miller'
AND FIRST_NAME = 'John';
SELECT
PHONE
FROM PUBLIC.ADDRESS
......
......@@ -5,9 +5,13 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Quickstart
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -5,9 +5,13 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Roadmap
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
......@@ -4,6 +4,7 @@ and under the Eclipse Public License, Version 1.0
Initial Developer: H2 Group
-->
<html><head>
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>Source Code Viewer</title>
</head>
<script type="text/javascript">
......
......@@ -6,6 +6,8 @@ Initial Developer: H2 Group
-->
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
<title>Error Analyzer</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<style type="text/css">
......
......@@ -5,9 +5,13 @@ 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">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name=viewport content="width=device-width, initial-scale=1" />
<title>
Tutorial
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论