Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
7051dafc
提交
7051dafc
authored
8月 17, 2011
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
2e9fffe4
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
32 行增加
和
12 行删除
+32
-12
help.csv
h2/src/docsrc/help/help.csv
+1
-0
advanced.html
h2/src/docsrc/html/advanced.html
+11
-1
features.html
h2/src/docsrc/html/features.html
+11
-4
roadmap.html
h2/src/docsrc/html/roadmap.html
+2
-0
tutorial.html
h2/src/docsrc/html/tutorial.html
+7
-7
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
7051dafc
...
...
@@ -1152,6 +1152,7 @@ If IGNORECASE is enabled, text columns in newly created tables will be
case-insensitive. Already existing tables are not affected. The effect of
case-insensitive columns is similar to using a collation with strength PRIMARY.
Case-insensitive columns are compared faster than when using a collation.
String literals and parameters are however still considered case sensitive even if this option is set.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
...
...
h2/src/docsrc/html/advanced.html
浏览文件 @
7051dafc
...
...
@@ -401,6 +401,8 @@ MEMORY_FREE(), MEMORY_USED(), CSVREAD(), CSVWRITE(), RAND()</code> [when not usi
Those functions should not be used directly in modifying statements
(for example
<code>
INSERT, UPDATE, MERGE
</code>
). However, they can be used
in read-only statements and the result can then be used for modifying statements.
Using auto-increment and identity columns is currently not supported.
Instead, sequence values need to be manually requested and then used to insert data (using two statements).
</p>
<p>
When using the cluster modes, result sets are read fully in memory by the client, so that
...
...
@@ -483,6 +485,13 @@ is included in the installation. Batch files are provided to install, start, sto
H2 Database Engine Service. This service contains the TCP Server and the H2 Console web application.
The batch files are located in the directory
<code>
h2/service
</code>
.
</p>
<p>
When running the database as a service, absolute path should be used.
Using
<code>
~
</code>
in the database URL is problematic in this case,
because it means to use the home directory of the current user.
The service might run without or with the wrong user, so that
the database files might end up in an unexpected place.
</p>
<h3>
Install the Service
</h3>
<p>
...
...
@@ -1409,7 +1418,8 @@ and the recursion needs to be on the second part of the query.
No tables or views with the name of the table expression may exist.
Different table expression names need to be used when using multiple distinct table
expressions within the same transaction and for the same session.
All columns of the table expression are of type
<code>
VARCHAR
</code>
.
All columns of the table expression are of type
<code>
VARCHAR
</code>
,
and may need to be cast to the required data type.
Views with recursive queries are not supported.
Subqueries and
<code>
INSERT INTO ... FROM
</code>
with recursive queries are not supported.
Parameters are only supported within the last
<code>
SELECT
</code>
statement
...
...
h2/src/docsrc/html/features.html
浏览文件 @
7051dafc
...
...
@@ -300,6 +300,13 @@ H2 1.3,
<td
class=
"compareY"
>
Yes
</td>
<td
class=
"compareY"
>
Yes
</td>
</tr><tr>
<td>
Window Functions
</td>
<td
class=
"compareN"
>
No *15
</td>
<td
class=
"compareN"
>
No *15
</td>
<td
class=
"compareN"
>
No
</td>
<td
class=
"compareY"
>
Yes
</td>
<td
class=
"compareN"
>
No
</td>
</tr><tr>
<td>
Temporary Tables
</td>
<td
class=
"compareY"
>
Yes
</td>
<td
class=
"compareY"
>
Yes *4
</td>
...
...
@@ -366,6 +373,7 @@ H2 1.3,
*12 Derby doesn't support the
<code>
EXPLAIN
</code>
statement, but it supports runtime statistics and retrieving statement execution plans.
<br
/>
*13 Derby doesn't support the syntax
<code>
LIMIT .. [OFFSET ..]
</code>
, however it supports
<code>
FETCH FIRST .. ROW[S] ONLY
</code>
.
<br
/>
*14 Using collations.
*15 Derby and H2 support
<code>
ROW_NUMBER() OVER()
</code>
.
</p>
<h3>
DaffodilDb and One$Db
</h3>
...
...
@@ -969,11 +977,10 @@ without problems.
<h3>
Backup
</h3>
<p>
When the database is closed, it is possible to backup the database files. Please note that index
files do not need to be backed up, because they contain redundant data, and will be recreated
automatically if they don't exist.
When the database is closed, it is possible to backup the database files.
</p><p>
To backup data while the database is running, the SQL command
<code>
SCRIPT
</code>
can be used.
To backup data while the database is running,
the SQL commands
<code>
SCRIPT
</code>
and
<code>
BACKUP
</code>
can be used.
</p>
<h2
id=
"logging_recovery"
>
Logging and Recovery
</h2>
...
...
h2/src/docsrc/html/roadmap.html
浏览文件 @
7051dafc
...
...
@@ -555,6 +555,8 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>
Sybase / MS SQL Server compatibility: CONVERT(..) parameters are swapped.
</li><li>
Index conditions: WHERE AGE>1 should not scan through all rows with AGE=1.
</li><li>
PHP support: H2 should support PDO, or test with PostgreSQL PDO.
</li><li>
Outer joins: if no column of the outer join table is referenced, the outer join table could be removed from the query.
</li><li>
Cluster: allow using auto-increment and identity columns by ensuring executed in lock-step.
</li></ul>
<h2>
Not Planned
</h2>
...
...
h2/src/docsrc/html/tutorial.html
浏览文件 @
7051dafc
...
...
@@ -954,10 +954,10 @@ and then execute the SQL script using the new engine.
<h3>
Backup using the Script Tool
</h3>
<p>
The
re are different ways to backup a database. For example, it is possible to copy the database files
.
However, this is not recommended while the database is in use. Also, the database files are not human readable
and quite large. The recommended way to backup a database is to create a compressed SQL script
file.
Th
is can be done using the
<code>
Script
</code>
tool
:
The
recommended way to backup a database is to create a compressed SQL script file
.
This will result in a small, human readable, and database version independent backup.
Creating the script will also verify the checksums of the database
file.
Th
e
<code>
Script
</code>
tool is ran as follows
:
</p>
<pre>
java org.h2.tools.Script -url jdbc:h2:~/test -user sa -script test.zip -options compression zip
...
...
@@ -989,7 +989,7 @@ need to be available on the server side.
<h3>
Online Backup
</h3>
<p>
The
<code>
BACKUP
</code>
SQL statement and the
<code>
Backup
</code>
tool both create a zip file
with
all database files
. However, the contents of this file are not human readable.
with
the database file
. However, the contents of this file are not human readable.
</p><p>
The resulting backup is transactionally consistent, meaning the consistency and atomicity rules apply.
</p>
...
...
@@ -1002,8 +1002,8 @@ the database must not be in use while running this program.
</p>
<p>
Creating a backup by copying the database files while the database is running is not supported,
except if the file systems support creating snapshots.
The problem is that it can't
be guaranteed that the data is copied in the right order.
except if the file systems support creating snapshots.
With other file systems, it can't
be guaranteed that the data is copied in the right order.
</p>
<h2
id=
"command_line_tools"
>
Command Line Tools
</h2>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论