Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
d24d2025
提交
d24d2025
authored
3月 06, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Wrap some lines in help.csv in better places
上级
f9afc84b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
46 行增加
和
22 行删除
+46
-22
help.csv
h2/src/docsrc/help/help.csv
+46
-22
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
d24d2025
...
@@ -6,8 +6,11 @@
...
@@ -6,8 +6,11 @@
SELECT [ TOP term ] [ DISTINCT | ALL ] selectExpression [,...]
SELECT [ TOP term ] [ DISTINCT | ALL ] selectExpression [,...]
FROM tableExpression [,...] [ WHERE expression ]
FROM tableExpression [,...] [ WHERE expression ]
[ GROUP BY expression [,...] ] [ HAVING expression ]
[ GROUP BY expression [,...] ] [ HAVING expression ]
[ { UNION [ ALL ] | MINUS | EXCEPT | INTERSECT } select ] [ ORDER BY order [,...] ]
[ { UNION [ ALL ] | MINUS | EXCEPT | INTERSECT } select ]
[ { LIMIT expression [ OFFSET expression ] [ SAMPLE_SIZE rowCountInt ] } | { [ OFFSET expression { ROW | ROWS } ] [ { FETCH { FIRST | NEXT } expression { ROW | ROWS } ONLY } ] } ]
[ ORDER BY order [,...] ]
[ { LIMIT expression [ OFFSET expression ] [ SAMPLE_SIZE rowCountInt ] }
| { [ OFFSET expression { ROW | ROWS } ]
[ { FETCH { FIRST | NEXT } expression { ROW | ROWS } ONLY } ] } ]
[ FOR UPDATE ]
[ FOR UPDATE ]
","
","
Selects data from a table or multiple tables.
Selects data from a table or multiple tables.
...
@@ -44,7 +47,8 @@ SELECT * FROM (SELECT ID, COUNT(*) FROM TEST
...
@@ -44,7 +47,8 @@ SELECT * FROM (SELECT ID, COUNT(*) FROM TEST
"Commands (DML)","INSERT","
"Commands (DML)","INSERT","
INSERT INTO tableName
INSERT INTO tableName
{ [ ( columnName [,...] ) ]
{ [ ( columnName [,...] ) ]
{ VALUES { ( { DEFAULT | expression } [,...] ) } [,...] | [ DIRECT ] [ SORTED ] select } } |
{ VALUES { ( { DEFAULT | expression } [,...] ) } [,...]
| [ DIRECT ] [ SORTED ] select } } |
{ SET { columnName = { DEFAULT | expression } } [,...] }
{ SET { columnName = { DEFAULT | expression } } [,...] }
","
","
Inserts a new row / new rows into a table.
Inserts a new row / new rows into a table.
...
@@ -99,7 +103,8 @@ CALL 15*25
...
@@ -99,7 +103,8 @@ CALL 15*25
"
"
"Commands (DML)","EXPLAIN","
"Commands (DML)","EXPLAIN","
EXPLAIN { [ PLAN FOR ] | ANALYZE } { select | insert | update | delete | merge }
EXPLAIN { [ PLAN FOR ] | ANALYZE }
{ select | insert | update | delete | merge }
","
","
Shows the execution plan for a statement.
Shows the execution plan for a statement.
When using EXPLAIN ANALYZE, the statement is actually executed, and the query plan
When using EXPLAIN ANALYZE, the statement is actually executed, and the query plan
...
@@ -269,7 +274,9 @@ ALTER SCHEMA TEST RENAME TO PRODUCTION
...
@@ -269,7 +274,9 @@ ALTER SCHEMA TEST RENAME TO PRODUCTION
"
"
"Commands (DDL)","ALTER SEQUENCE","
"Commands (DDL)","ALTER SEQUENCE","
ALTER SEQUENCE [ IF EXISTS ] sequenceName [ RESTART WITH long ] [ INCREMENT BY long ]
ALTER SEQUENCE [ IF EXISTS ] sequenceName
[ RESTART WITH long ]
[ INCREMENT BY long ]
[ MINVALUE long | NOMINVALUE | NO MINVALUE ]
[ MINVALUE long | NOMINVALUE | NO MINVALUE ]
[ MAXVALUE long | NOMAXVALUE | NO MAXVALUE ]
[ MAXVALUE long | NOMAXVALUE | NO MAXVALUE ]
[ CYCLE long | NOCYCLE | NO CYCLE ]
[ CYCLE long | NOCYCLE | NO CYCLE ]
...
@@ -307,7 +314,8 @@ ALTER TABLE TEST ADD CONSTRAINT NAME_UNIQUE UNIQUE(NAME)
...
@@ -307,7 +314,8 @@ ALTER TABLE TEST ADD CONSTRAINT NAME_UNIQUE UNIQUE(NAME)
"
"
"Commands (DDL)","ALTER TABLE RENAME CONSTRAINT","
"Commands (DDL)","ALTER TABLE RENAME CONSTRAINT","
ALTER TABLE [ IF EXISTS ] tableName RENAME oldConstraintName TO newConstraintName
ALTER TABLE [ IF EXISTS ] tableName RENAME oldConstraintName
TO newConstraintName
","
","
Renames a constraint.
Renames a constraint.
This command commits an open transaction in this connection.
This command commits an open transaction in this connection.
...
@@ -364,7 +372,8 @@ ALTER TABLE TEST ALTER COLUMN NAME SET INVISIBLE;
...
@@ -364,7 +372,8 @@ ALTER TABLE TEST ALTER COLUMN NAME SET INVISIBLE;
"
"
"Commands (DDL)","ALTER TABLE DROP COLUMN","
"Commands (DDL)","ALTER TABLE DROP COLUMN","
ALTER TABLE [ IF EXISTS ] tableName DROP COLUMN [ IF EXISTS ] ( columnName [,...] )
ALTER TABLE [ IF EXISTS ] tableName DROP COLUMN [ IF EXISTS ]
( columnName [,...] )
","
","
Removes column(s) from a table.
Removes column(s) from a table.
This command commits an open transaction in this connection.
This command commits an open transaction in this connection.
...
@@ -374,7 +383,8 @@ ALTER TABLE TEST DROP COLUMN NAME1, NAME2
...
@@ -374,7 +383,8 @@ ALTER TABLE TEST DROP COLUMN NAME1, NAME2
"
"
"Commands (DDL)","ALTER TABLE DROP CONSTRAINT","
"Commands (DDL)","ALTER TABLE DROP CONSTRAINT","
ALTER TABLE [ IF EXISTS ] tableName DROP { CONSTRAINT [ IF EXISTS ] constraintName | PRIMARY KEY }
ALTER TABLE [ IF EXISTS ] tableName DROP
{ CONSTRAINT [ IF EXISTS ] constraintName | PRIMARY KEY }
","
","
Removes a constraint or a primary key from a table.
Removes a constraint or a primary key from a table.
This command commits an open transaction in this connection.
This command commits an open transaction in this connection.
...
@@ -626,11 +636,13 @@ be the resource name (for example ""java:comp/env/jdbc/Test"").
...
@@ -626,11 +636,13 @@ be the resource name (for example ""java:comp/env/jdbc/Test"").
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction in this connection.
This command commits an open transaction in this connection.
","
","
CREATE LINKED TABLE LINK('org.h2.Driver', 'jdbc:h2:test2', 'sa', 'sa', 'TEST');
CREATE LINKED TABLE LINK('org.h2.Driver', 'jdbc:h2:test2',
'sa', 'sa', 'TEST');
CREATE LINKED TABLE LINK('', 'jdbc:h2:test2', 'sa', 'sa',
CREATE LINKED TABLE LINK('', 'jdbc:h2:test2', 'sa', 'sa',
'(SELECT * FROM TEST WHERE ID>0)');
'(SELECT * FROM TEST WHERE ID>0)');
CREATE LINKED TABLE LINK('javax.naming.InitialContext',
CREATE LINKED TABLE LINK('javax.naming.InitialContext',
'java:comp/env/jdbc/Test', NULL, NULL, '(SELECT * FROM TEST WHERE ID>0)');
'java:comp/env/jdbc/Test', NULL, NULL,
'(SELECT * FROM TEST WHERE ID>0)');
"
"
"Commands (DDL)","CREATE ROLE","
"Commands (DDL)","CREATE ROLE","
...
@@ -643,7 +655,8 @@ CREATE ROLE READONLY
...
@@ -643,7 +655,8 @@ CREATE ROLE READONLY
"
"
"Commands (DDL)","CREATE SCHEMA","
"Commands (DDL)","CREATE SCHEMA","
CREATE SCHEMA [ IF NOT EXISTS ] name [ AUTHORIZATION ownerUserName ]
CREATE SCHEMA [ IF NOT EXISTS ] name
[ AUTHORIZATION ownerUserName ]
[ WITH tableEngineParamName [,...] ]
[ WITH tableEngineParamName [,...] ]
","
","
Creates a new schema. If no owner is specified, the current user is used. The
Creates a new schema. If no owner is specified, the current user is used. The
...
@@ -658,7 +671,8 @@ CREATE SCHEMA TEST_SCHEMA AUTHORIZATION SA
...
@@ -658,7 +671,8 @@ CREATE SCHEMA TEST_SCHEMA AUTHORIZATION SA
"
"
"Commands (DDL)","CREATE SEQUENCE","
"Commands (DDL)","CREATE SEQUENCE","
CREATE SEQUENCE [ IF NOT EXISTS ] newSequenceName [ START WITH long ]
CREATE SEQUENCE [ IF NOT EXISTS ] newSequenceName
[ START WITH long ]
[ INCREMENT BY long ]
[ INCREMENT BY long ]
[ MINVALUE long | NOMINVALUE | NO MINVALUE ]
[ MINVALUE long | NOMINVALUE | NO MINVALUE ]
[ MAXVALUE long | NOMAXVALUE | NO MAXVALUE ]
[ MAXVALUE long | NOMAXVALUE | NO MAXVALUE ]
...
@@ -722,9 +736,12 @@ CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255))
...
@@ -722,9 +736,12 @@ CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255))
"
"
"Commands (DDL)","CREATE TRIGGER","
"Commands (DDL)","CREATE TRIGGER","
CREATE TRIGGER [ IF NOT EXISTS ] newTriggerName { BEFORE | AFTER | INSTEAD OF }
CREATE TRIGGER [ IF NOT EXISTS ] newTriggerName
{ INSERT | UPDATE | DELETE | SELECT | ROLLBACK } [,...] ON tableName [ FOR EACH ROW ]
{ BEFORE | AFTER | INSTEAD OF }
[ QUEUE int ] [ NOWAIT ] { CALL triggeredClassName | AS sourceCodeString }
{ INSERT | UPDATE | DELETE | SELECT | ROLLBACK }
[,...] ON tableName [ FOR EACH ROW ]
[ QUEUE int ] [ NOWAIT ]
{ CALL triggeredClassName | AS sourceCodeString }
","
","
Creates a new trigger.
Creates a new trigger.
The trigger class must be public and implement ""org.h2.api.Trigger"".
The trigger class must be public and implement ""org.h2.api.Trigger"".
...
@@ -1219,7 +1236,8 @@ SET BUILTIN_ALIAS_OVERRIDE TRUE
...
@@ -1219,7 +1236,8 @@ SET BUILTIN_ALIAS_OVERRIDE TRUE
"Commands (Other)","SET COLLATION","
"Commands (Other)","SET COLLATION","
SET [ DATABASE ] COLLATION
SET [ DATABASE ] COLLATION
{ OFF | collationName [ STRENGTH { PRIMARY | SECONDARY | TERTIARY | IDENTICAL } ] }
{ OFF | collationName
[ STRENGTH { PRIMARY | SECONDARY | TERTIARY | IDENTICAL } ] }
","
","
Sets the collation used for comparing strings.
Sets the collation used for comparing strings.
This command can only be executed if there are no tables defined.
This command can only be executed if there are no tables defined.
...
@@ -2206,7 +2224,8 @@ DATE '2004-12-31'
...
@@ -2206,7 +2224,8 @@ DATE '2004-12-31'
"
"
"Other Grammar","Decimal","
"Other Grammar","Decimal","
[ + | - ] { { number [ . number ] } | { . number } } [ E [ + | - ] expNumber [...] ] ]
[ + | - ] { { number [ . number ] } | { . number } }
[ E [ + | - ] expNumber [...] ] ]
","
","
A decimal number with fixed precision and scale.
A decimal number with fixed precision and scale.
Internally, ""java.lang.BigDecimal"" is used.
Internally, ""java.lang.BigDecimal"" is used.
...
@@ -2388,7 +2407,8 @@ FOREIGN KEY(ID) REFERENCES TEST(ID) ON UPDATE CASCADE
...
@@ -2388,7 +2407,8 @@ FOREIGN KEY(ID) REFERENCES TEST(ID) ON UPDATE CASCADE
"
"
"Other Grammar","Script Compression Encryption","
"Other Grammar","Script Compression Encryption","
[ COMPRESSION { DEFLATE | LZF | ZIP | GZIP } ] [ CIPHER cipher PASSWORD string ]
[ COMPRESSION { DEFLATE | LZF | ZIP | GZIP } ]
[ CIPHER cipher PASSWORD string ]
","
","
The compression and encryption algorithm to use for script files.
The compression and encryption algorithm to use for script files.
When using encryption, only DEFLATE and LZF are supported.
When using encryption, only DEFLATE and LZF are supported.
...
@@ -2638,7 +2658,8 @@ DATE
...
@@ -2638,7 +2658,8 @@ DATE
"
"
"Data Types","TIMESTAMP Type","
"Data Types","TIMESTAMP Type","
{ TIMESTAMP [ ( precisionInt ) ] [ WITHOUT TIME ZONE ] | DATETIME | SMALLDATETIME }
{ TIMESTAMP [ ( precisionInt ) ] [ WITHOUT TIME ZONE ]
| DATETIME | SMALLDATETIME }
","
","
The timestamp data type. The format is yyyy-MM-dd hh:mm:ss[.nnnnnnnnn].
The timestamp data type. The format is yyyy-MM-dd hh:mm:ss[.nnnnnnnnn].
Stored internally as a BCD-encoded date, and nanoseconds since midnight.
Stored internally as a BCD-encoded date, and nanoseconds since midnight.
...
@@ -2669,7 +2690,8 @@ TIMESTAMP WITH TIME ZONE
...
@@ -2669,7 +2690,8 @@ TIMESTAMP WITH TIME ZONE
"
"
"Data Types","BINARY Type","
"Data Types","BINARY Type","
{ BINARY | VARBINARY | LONGVARBINARY | RAW | BYTEA } [ ( precisionInt ) ]
{ BINARY | VARBINARY | LONGVARBINARY | RAW | BYTEA }
[ ( precisionInt ) ]
","
","
Represents a byte array. For very long arrays, use BLOB.
Represents a byte array. For very long arrays, use BLOB.
The maximum size is 2 GB, but the whole object is kept in
The maximum size is 2 GB, but the whole object is kept in
...
@@ -2750,7 +2772,8 @@ CHAR(10)
...
@@ -2750,7 +2772,8 @@ CHAR(10)
"
"
"Data Types","BLOB Type","
"Data Types","BLOB Type","
{ BLOB | TINYBLOB | MEDIUMBLOB | LONGBLOB | IMAGE | OID } [ ( precisionInt ) ]
{ BLOB | TINYBLOB | MEDIUMBLOB | LONGBLOB | IMAGE | OID }
[ ( precisionInt ) ]
","
","
Like BINARY, but intended for very large values such as files or images. Unlike
Like BINARY, but intended for very large values such as files or images. Unlike
when using BINARY, large objects are not kept fully in-memory. Use
when using BINARY, large objects are not kept fully in-memory. Use
...
@@ -2763,7 +2786,8 @@ BLOB
...
@@ -2763,7 +2786,8 @@ BLOB
"
"
"Data Types","CLOB Type","
"Data Types","CLOB Type","
{ CLOB | TINYTEXT | TEXT | MEDIUMTEXT | LONGTEXT | NTEXT | NCLOB } [ ( precisionInt ) ]
{ CLOB | TINYTEXT | TEXT | MEDIUMTEXT | LONGTEXT | NTEXT | NCLOB }
[ ( precisionInt ) ]
","
","
CLOB is like VARCHAR, but intended for very large values. Unlike when using
CLOB is like VARCHAR, but intended for very large values. Unlike when using
VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed.
VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论