Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
8d9d13e6
提交
8d9d13e6
authored
7 年前
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Describe more differences in compatibility modes
上级
65ca7f5a
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
20 行增加
和
1 行删除
+20
-1
features.html
h2/src/docsrc/html/features.html
+20
-1
没有找到文件。
h2/src/docsrc/html/features.html
浏览文件 @
8d9d13e6
...
...
@@ -1047,6 +1047,7 @@ or the SQL statement <code>SET MODE DB2</code>.
</li><li>
Concatenating
<code>
NULL
</code>
with another value
results in the other value.
</li><li>
Support the pseudo-table SYSIBM.SYSDUMMY1.
</li><li>
Timestamps with dash between date and time are supported.
</li></ul>
<h3>
Derby Compatibility Mode
</h3>
...
...
@@ -1098,7 +1099,7 @@ or the SQL statement <code>SET MODE MSSQLServer</code>.
<h3>
MySQL Compatibility Mode
</h3>
<p>
To use the MySQL mode, use the database URL
<code>
jdbc:h2:~/test;MODE=MySQL
</code>
or the SQL statement
<code>
SET MODE MySQL
</code>
.
or the SQL statement
<code>
SET MODE MySQL
</code>
.
Use this mode for compatibility with MariaDB too.
</p>
<ul><li>
When inserting data, if a column is defined to be
<code>
NOT NULL
</code>
and
<code>
NULL
</code>
is inserted,
...
...
@@ -1112,6 +1113,9 @@ or the SQL statement <code>SET MODE MySQL</code>.
digits are not truncated, but the value is rounded.
</li><li>
Concatenating
<code>
NULL
</code>
with another value
results in the other value.
</li><li>
ON DUPLICATE KEY UPDATE is supported in INSERT statements.
</li><li>
INSERT IGNORE is partially supported and may be used to skip rows with duplicate keys if ON DUPLICATE KEY UPDATE is not specified.
</li><li>
REGEXP_REPLACE() uses \ for back-references for compatibility with MariaDB.
</li></ul>
<p>
Text comparison in MySQL is case insensitive by default, while in H2 it is case sensitive (as in most other databases).
...
...
@@ -1134,6 +1138,8 @@ or the SQL statement <code>SET MODE Oracle</code>.
</li><li>
Concatenating
<code>
NULL
</code>
with another value
results in the other value.
</li><li>
Empty strings are treated like
<code>
NULL
</code>
values.
</li><li>
REGEXP_REPLACE() uses \ for back-references.
</li><li>
DATE data type is treated like TIMESTAMP data type.
</li></ul>
<h3>
PostgreSQL Compatibility Mode
</h3>
...
...
@@ -1149,6 +1155,19 @@ or the SQL statement <code>SET MODE PostgreSQL</code>.
</li><li>
The system columns
<code>
CTID
</code>
and
<code>
OID
</code>
are supported.
</li><li>
LOG(x) is base 10 in this mode.
</li><li>
REGEXP_REPLACE() uses \ for back-references.
</li><li>
Fixed-width strings are padded with spaces.
</li></ul>
<h3>
Ignite Compatibility Mode
</h3>
<p>
To use the Ignite mode, use the database URL
<code>
jdbc:h2:~/test;MODE=Ignite
</code>
or the SQL statement
<code>
SET MODE Ignite
</code>
.
</p>
<ul><li>
Creating indexes in the
<code>
CREATE TABLE
</code>
statement is allowed using
<code>
INDEX(..)
</code>
or
<code>
KEY(..)
</code>
.
Example:
<code>
create table test(id int primary key, name varchar(255), key idx_name(name));
</code>
</li><li>
AFFINITY KEY and SHARD KEY keywords may be used in index definition.
</li></ul>
<h2
id=
"auto_reconnect"
>
Auto-Reconnect
</h2>
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论