Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
85c83388
提交
85c83388
authored
12月 17, 2014
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation
上级
31119540
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
73 行增加
和
73 行删除
+73
-73
help.csv
h2/src/docsrc/help/help.csv
+73
-73
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
85c83388
...
@@ -195,7 +195,7 @@ SHOW TABLES
...
@@ -195,7 +195,7 @@ SHOW TABLES
ALTER INDEX indexName RENAME TO newIndexName
ALTER INDEX indexName RENAME TO newIndexName
","
","
Renames an index.
Renames an index.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER INDEX IDXNAME RENAME TO IDX_TEST_NAME
ALTER INDEX IDXNAME RENAME TO IDX_TEST_NAME
"
"
...
@@ -204,7 +204,7 @@ ALTER INDEX IDXNAME RENAME TO IDX_TEST_NAME
...
@@ -204,7 +204,7 @@ ALTER INDEX IDXNAME RENAME TO IDX_TEST_NAME
ALTER SCHEMA schema RENAME TO newSchemaName
ALTER SCHEMA schema RENAME TO newSchemaName
","
","
Renames a schema.
Renames a schema.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER SCHEMA TEST RENAME TO PRODUCTION
ALTER SCHEMA TEST RENAME TO PRODUCTION
"
"
...
@@ -229,7 +229,7 @@ ALTER TABLE tableName ADD [ COLUMN ]
...
@@ -229,7 +229,7 @@ ALTER TABLE tableName ADD [ COLUMN ]
| ( { columnDefinition } [,...] ) }
| ( { columnDefinition } [,...] ) }
","
","
Adds a new column to a table.
Adds a new column to a table.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER TABLE TEST ADD CREATEDATE TIMESTAMP
ALTER TABLE TEST ADD CREATEDATE TIMESTAMP
"
"
...
@@ -241,7 +241,7 @@ Adds a constraint to a table. If NOCHECK is specified, existing rows are not
...
@@ -241,7 +241,7 @@ Adds a constraint to a table. If NOCHECK is specified, existing rows are not
checked for consistency (the default is to check consistency for existing rows).
checked for consistency (the default is to check consistency for existing rows).
The required indexes are automatically created if they don't exist yet.
The required indexes are automatically created if they don't exist yet.
It is not possible to disable checking for unique constraints.
It is not possible to disable checking for unique constraints.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER TABLE TEST ADD CONSTRAINT NAME_UNIQUE UNIQUE(NAME)
ALTER TABLE TEST ADD CONSTRAINT NAME_UNIQUE UNIQUE(NAME)
"
"
...
@@ -277,7 +277,7 @@ Single column indexes on this column are dropped.
...
@@ -277,7 +277,7 @@ Single column indexes on this column are dropped.
SET NOT NULL sets a column to not allow NULL. Rows may not contains NULL in this column.
SET NOT NULL sets a column to not allow NULL. Rows may not contains NULL in this column.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER TABLE TEST ALTER COLUMN NAME CLOB;
ALTER TABLE TEST ALTER COLUMN NAME CLOB;
ALTER TABLE TEST ALTER COLUMN NAME RENAME TO TEXT;
ALTER TABLE TEST ALTER COLUMN NAME RENAME TO TEXT;
...
@@ -292,7 +292,7 @@ ALTER TABLE TEST ALTER COLUMN NAME SET NULL;
...
@@ -292,7 +292,7 @@ ALTER TABLE TEST ALTER COLUMN NAME SET NULL;
ALTER TABLE tableName DROP COLUMN [ IF EXISTS ] columnName
ALTER TABLE tableName DROP COLUMN [ IF EXISTS ] columnName
","
","
Removes a column from a table.
Removes a column from a table.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER TABLE TEST DROP COLUMN NAME
ALTER TABLE TEST DROP COLUMN NAME
"
"
...
@@ -301,7 +301,7 @@ ALTER TABLE TEST DROP COLUMN NAME
...
@@ -301,7 +301,7 @@ ALTER TABLE TEST DROP COLUMN NAME
ALTER TABLE tableName DROP { CONSTRAINT [ IF EXISTS ] constraintName | PRIMARY KEY }
ALTER TABLE 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.
This command commits an open transaction
in this connection
.
","
","
ALTER TABLE TEST DROP CONSTRAINT UNIQUE_NAME
ALTER TABLE TEST DROP CONSTRAINT UNIQUE_NAME
"
"
...
@@ -316,7 +316,7 @@ existing data, except if CHECK is specified. Use SET REFERENTIAL_INTEGRITY to
...
@@ -316,7 +316,7 @@ existing data, except if CHECK is specified. Use SET REFERENTIAL_INTEGRITY to
disable it for all tables; the global flag and the flag for each table are
disable it for all tables; the global flag and the flag for each table are
independent.
independent.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER TABLE TEST SET REFERENTIAL_INTEGRITY FALSE
ALTER TABLE TEST SET REFERENTIAL_INTEGRITY FALSE
"
"
...
@@ -325,7 +325,7 @@ ALTER TABLE TEST SET REFERENTIAL_INTEGRITY FALSE
...
@@ -325,7 +325,7 @@ ALTER TABLE TEST SET REFERENTIAL_INTEGRITY FALSE
ALTER TABLE tableName RENAME TO newName
ALTER TABLE tableName RENAME TO newName
","
","
Renames a table.
Renames a table.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER TABLE TEST RENAME TO MY_DATA
ALTER TABLE TEST RENAME TO MY_DATA
"
"
...
@@ -337,7 +337,7 @@ Switches the admin flag of a user on or off.
...
@@ -337,7 +337,7 @@ Switches the admin flag of a user on or off.
Only unquoted or uppercase user names are allowed.
Only unquoted or uppercase user names are allowed.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER USER TOM ADMIN TRUE
ALTER USER TOM ADMIN TRUE
"
"
...
@@ -350,7 +350,7 @@ After renaming a user, the password becomes invalid and needs to be changed as w
...
@@ -350,7 +350,7 @@ After renaming a user, the password becomes invalid and needs to be changed as w
Only unquoted or uppercase user names are allowed.
Only unquoted or uppercase user names are allowed.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER USER TOM RENAME TO THOMAS
ALTER USER TOM RENAME TO THOMAS
"
"
...
@@ -364,7 +364,7 @@ The password must be enclosed in single quotes. It is case sensitive
...
@@ -364,7 +364,7 @@ The password must be enclosed in single quotes. It is case sensitive
and can contain spaces. The salt and hash values are hex strings.
and can contain spaces. The salt and hash values are hex strings.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER USER SA SET PASSWORD 'rioyxlgt'
ALTER USER SA SET PASSWORD 'rioyxlgt'
"
"
...
@@ -374,7 +374,7 @@ ALTER VIEW viewName RECOMPILE
...
@@ -374,7 +374,7 @@ ALTER VIEW viewName RECOMPILE
","
","
Recompiles a view after the underlying tables have been changed or created.
Recompiles a view after the underlying tables have been changed or created.
This command is used for views created using CREATE FORCE VIEW.
This command is used for views created using CREATE FORCE VIEW.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ALTER VIEW ADDRESS_VIEW RECOMPILE
ALTER VIEW ADDRESS_VIEW RECOMPILE
"
"
...
@@ -389,7 +389,7 @@ read. The selectivity can be set manually using ALTER TABLE ALTER COLUMN
...
@@ -389,7 +389,7 @@ read. The selectivity can be set manually using ALTER TABLE ALTER COLUMN
SELECTIVITY. Manual values are overwritten by this statement. The selectivity is
SELECTIVITY. Manual values are overwritten by this statement. The selectivity is
available in the INFORMATION_SCHEMA.COLUMNS table.
available in the INFORMATION_SCHEMA.COLUMNS table.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
ANALYZE SAMPLE_SIZE 1000
ANALYZE SAMPLE_SIZE 1000
"
"
...
@@ -404,7 +404,7 @@ IS expression
...
@@ -404,7 +404,7 @@ IS expression
Sets the comment of a database object. Use NULL to remove the comment.
Sets the comment of a database object. Use NULL to remove the comment.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
COMMENT ON TABLE TEST IS 'Table used for testing'
COMMENT ON TABLE TEST IS 'Table used for testing'
"
"
...
@@ -417,7 +417,7 @@ qualified class name. The class must implement the interface
...
@@ -417,7 +417,7 @@ qualified class name. The class must implement the interface
""org.h2.api.AggregateFunction"".
""org.h2.api.AggregateFunction"".
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE AGGREGATE MEDIAN FOR ""com.acme.db.Median""
CREATE AGGREGATE MEDIAN FOR ""com.acme.db.Median""
"
"
...
@@ -456,7 +456,7 @@ If the class contains multiple methods with the given name but different
...
@@ -456,7 +456,7 @@ If the class contains multiple methods with the given name but different
parameter count, all methods are mapped.
parameter count, all methods are mapped.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
If you have the Groovy jar in your classpath, it is also possible to write methods using Groovy.
If you have the Groovy jar in your classpath, it is also possible to write methods using Groovy.
","
","
...
@@ -477,7 +477,7 @@ $$
...
@@ -477,7 +477,7 @@ $$
CREATE CONSTANT [ IF NOT EXISTS ] newConstantName VALUE expression
CREATE CONSTANT [ IF NOT EXISTS ] newConstantName VALUE expression
","
","
Creates a new constant.
Creates a new constant.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE CONSTANT ONE VALUE 1
CREATE CONSTANT ONE VALUE 1
"
"
...
@@ -493,7 +493,7 @@ to the value being tested.
...
@@ -493,7 +493,7 @@ to the value being tested.
Domains are usable within the whole database. They can not be created in a specific schema.
Domains are usable within the whole database. They can not be created in a specific schema.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE DOMAIN EMAIL AS VARCHAR(255) CHECK (POSITION('@', VALUE) > 1)
CREATE DOMAIN EMAIL AS VARCHAR(255) CHECK (POSITION('@', VALUE) > 1)
"
"
...
@@ -505,7 +505,7 @@ CREATE
...
@@ -505,7 +505,7 @@ CREATE
ON tableName ( indexColumn [,...] )
ON tableName ( indexColumn [,...] )
","
","
Creates a new index.
Creates a new index.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
Hash indexes are meant for in-memory databases and memory tables (CREATE MEMORY TABLE).
Hash indexes are meant for in-memory databases and memory tables (CREATE MEMORY TABLE).
For other tables, or if the index contains multiple columns, the HASH keyword is ignored.
For other tables, or if the index contains multiple columns, the HASH keyword is ignored.
...
@@ -546,7 +546,7 @@ javax.naming.Context (for example ""javax.naming.InitialContext""), and the URL
...
@@ -546,7 +546,7 @@ javax.naming.Context (for example ""javax.naming.InitialContext""), and the URL
be the resource name (for example ""java:comp/env/jdbc/Test"").
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.
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',
...
@@ -559,7 +559,7 @@ CREATE LINKED TABLE LINK('javax.naming.InitialContext',
...
@@ -559,7 +559,7 @@ CREATE LINKED TABLE LINK('javax.naming.InitialContext',
CREATE ROLE [ IF NOT EXISTS ] newRoleName
CREATE ROLE [ IF NOT EXISTS ] newRoleName
","
","
Creates a new role.
Creates a new role.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE ROLE READONLY
CREATE ROLE READONLY
"
"
...
@@ -571,7 +571,7 @@ Creates a new schema. If no owner is specified, the current user is used. The
...
@@ -571,7 +571,7 @@ Creates a new schema. If no owner is specified, the current user is used. The
user that executes the command must have admin rights, as well as the owner.
user that executes the command must have admin rights, as well as the owner.
Specifying the owner currently has no effect.
Specifying the owner currently has no effect.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE SCHEMA TEST_SCHEMA AUTHORIZATION SA
CREATE SCHEMA TEST_SCHEMA AUTHORIZATION SA
"
"
...
@@ -593,7 +593,7 @@ If the system crashes without closing the database, at most this many numbers ar
...
@@ -593,7 +593,7 @@ If the system crashes without closing the database, at most this many numbers ar
The default cache size is 32.
The default cache size is 32.
To disable caching, use the cache size 1 or lower.
To disable caching, use the cache size 1 or lower.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE SEQUENCE SEQ_ID
CREATE SEQUENCE SEQ_ID
"
"
...
@@ -680,7 +680,7 @@ QUEUE is implemented for syntax compatibility with HSQL and has no effect.
...
@@ -680,7 +680,7 @@ QUEUE is implemented for syntax compatibility with HSQL and has no effect.
The trigger need to be created in the same schema as the table.
The trigger need to be created in the same schema as the table.
The schema name does not need to be specified when creating the trigger.
The schema name does not need to be specified when creating the trigger.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE TRIGGER TRIG_INS BEFORE INSERT ON TEST FOR EACH ROW CALL ""MyTrigger""
CREATE TRIGGER TRIG_INS BEFORE INSERT ON TEST FOR EACH ROW CALL ""MyTrigger""
"
"
...
@@ -693,7 +693,7 @@ The password must be in single quotes. It is case sensitive and can contain spac
...
@@ -693,7 +693,7 @@ The password must be in single quotes. It is case sensitive and can contain spac
The salt and hash values are hex strings.
The salt and hash values are hex strings.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE USER GUEST PASSWORD 'abc'
CREATE USER GUEST PASSWORD 'abc'
"
"
...
@@ -713,7 +713,7 @@ can be ignored if the FORCE clause is also used.
...
@@ -713,7 +713,7 @@ can be ignored if the FORCE clause is also used.
Views are not updatable except when using 'instead of' triggers.
Views are not updatable except when using 'instead of' triggers.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
CREATE VIEW TEST_VIEW AS SELECT * FROM TEST WHERE ID < 100
CREATE VIEW TEST_VIEW AS SELECT * FROM TEST WHERE ID < 100
"
"
...
@@ -724,7 +724,7 @@ DROP AGGREGATE [ IF EXISTS ] aggregateName
...
@@ -724,7 +724,7 @@ DROP AGGREGATE [ IF EXISTS ] aggregateName
Drops an existing user-defined aggregate function.
Drops an existing user-defined aggregate function.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP AGGREGATE MEDIAN
DROP AGGREGATE MEDIAN
"
"
...
@@ -735,7 +735,7 @@ DROP ALIAS [ IF EXISTS ] existingFunctionAliasName
...
@@ -735,7 +735,7 @@ DROP ALIAS [ IF EXISTS ] existingFunctionAliasName
Drops an existing function alias.
Drops an existing function alias.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP ALIAS MY_SQRT
DROP ALIAS MY_SQRT
"
"
...
@@ -758,7 +758,7 @@ DROP ALL OBJECTS
...
@@ -758,7 +758,7 @@ DROP ALL OBJECTS
DROP CONSTANT [ IF EXISTS ] constantName
DROP CONSTANT [ IF EXISTS ] constantName
","
","
Drops a constant.
Drops a constant.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP CONSTANT ONE
DROP CONSTANT ONE
"
"
...
@@ -767,7 +767,7 @@ DROP CONSTANT ONE
...
@@ -767,7 +767,7 @@ DROP CONSTANT ONE
DROP DOMAIN [ IF EXISTS ] domainName
DROP DOMAIN [ IF EXISTS ] domainName
","
","
Drops a data type (domain).
Drops a data type (domain).
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP DOMAIN EMAIL
DROP DOMAIN EMAIL
"
"
...
@@ -776,7 +776,7 @@ DROP DOMAIN EMAIL
...
@@ -776,7 +776,7 @@ DROP DOMAIN EMAIL
DROP INDEX [ IF EXISTS ] indexName
DROP INDEX [ IF EXISTS ] indexName
","
","
Drops an index.
Drops an index.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP INDEX IF EXISTS IDXNAME
DROP INDEX IF EXISTS IDXNAME
"
"
...
@@ -785,7 +785,7 @@ DROP INDEX IF EXISTS IDXNAME
...
@@ -785,7 +785,7 @@ DROP INDEX IF EXISTS IDXNAME
DROP ROLE [ IF EXISTS ] roleName
DROP ROLE [ IF EXISTS ] roleName
","
","
Drops a role.
Drops a role.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP ROLE READONLY
DROP ROLE READONLY
"
"
...
@@ -794,7 +794,7 @@ DROP ROLE READONLY
...
@@ -794,7 +794,7 @@ DROP ROLE READONLY
DROP SCHEMA [ IF EXISTS ] schemaName
DROP SCHEMA [ IF EXISTS ] schemaName
","
","
Drops a schema.
Drops a schema.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP SCHEMA TEST_SCHEMA
DROP SCHEMA TEST_SCHEMA
"
"
...
@@ -803,7 +803,7 @@ DROP SCHEMA TEST_SCHEMA
...
@@ -803,7 +803,7 @@ DROP SCHEMA TEST_SCHEMA
DROP SEQUENCE [ IF EXISTS ] sequenceName
DROP SEQUENCE [ IF EXISTS ] sequenceName
","
","
Drops a sequence.
Drops a sequence.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP SEQUENCE SEQ_ID
DROP SEQUENCE SEQ_ID
"
"
...
@@ -814,7 +814,7 @@ DROP TABLE [ IF EXISTS ] tableName [,...] [ RESTRICT | CASCADE ]
...
@@ -814,7 +814,7 @@ DROP TABLE [ IF EXISTS ] tableName [,...] [ RESTRICT | CASCADE ]
Drops an existing table, or a list of tables.
Drops an existing table, or a list of tables.
The command will fail if dependent views exist and the RESTRICT clause is used (the default).
The command will fail if dependent views exist and the RESTRICT clause is used (the default).
All dependent views are dropped as well if the CASCADE clause is used.
All dependent views are dropped as well if the CASCADE clause is used.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP TABLE TEST
DROP TABLE TEST
"
"
...
@@ -823,7 +823,7 @@ DROP TABLE TEST
...
@@ -823,7 +823,7 @@ DROP TABLE TEST
DROP TRIGGER [ IF EXISTS ] triggerName
DROP TRIGGER [ IF EXISTS ] triggerName
","
","
Drops an existing trigger.
Drops an existing trigger.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP TRIGGER TRIG_INS
DROP TRIGGER TRIG_INS
"
"
...
@@ -835,7 +835,7 @@ Drops a user. The current user cannot be dropped.
...
@@ -835,7 +835,7 @@ Drops a user. The current user cannot be dropped.
For compatibility, only unquoted or uppercase user names are allowed.
For compatibility, only unquoted or uppercase user names are allowed.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP USER TOM
DROP USER TOM
"
"
...
@@ -846,7 +846,7 @@ DROP VIEW [ IF EXISTS ] viewName [ RESTRICT | CASCADE ]
...
@@ -846,7 +846,7 @@ DROP VIEW [ IF EXISTS ] viewName [ RESTRICT | CASCADE ]
Drops an existing view.
Drops an existing view.
All dependent views are dropped as well if the CASCADE clause is used (the default).
All dependent views are dropped as well if the CASCADE clause is used (the default).
The command will fail if dependent views exist and the RESTRICT clause is used.
The command will fail if dependent views exist and the RESTRICT clause is used.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
DROP VIEW TEST_VIEW
DROP VIEW TEST_VIEW
"
"
...
@@ -861,7 +861,7 @@ Only regular data tables without foreign key constraints can be truncated
...
@@ -861,7 +861,7 @@ Only regular data tables without foreign key constraints can be truncated
(except if referential integrity is disabled for this database or for this table).
(except if referential integrity is disabled for this database or for this table).
Linked tables can't be truncated.
Linked tables can't be truncated.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
TRUNCATE TABLE TEST
TRUNCATE TABLE TEST
"
"
...
@@ -913,7 +913,7 @@ tableName [,...] TO { PUBLIC | userName | roleName }
...
@@ -913,7 +913,7 @@ tableName [,...] TO { PUBLIC | userName | roleName }
Grants rights for a table to a user or role.
Grants rights for a table to a user or role.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
GRANT SELECT ON TEST TO READONLY
GRANT SELECT ON TEST TO READONLY
"
"
...
@@ -924,7 +924,7 @@ GRANT ALTER ANY SCHEMA TO userName
...
@@ -924,7 +924,7 @@ GRANT ALTER ANY SCHEMA TO userName
Grant schema altering rights to a user.
Grant schema altering rights to a user.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
GRANT ALTER ANY SCHEMA TO Bob
GRANT ALTER ANY SCHEMA TO Bob
"
"
...
@@ -935,7 +935,7 @@ GRANT roleName TO { PUBLIC | userName | roleName }
...
@@ -935,7 +935,7 @@ GRANT roleName TO { PUBLIC | userName | roleName }
Grants a role to a user or role.
Grants a role to a user or role.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
GRANT READONLY TO PUBLIC
GRANT READONLY TO PUBLIC
"
"
...
@@ -964,7 +964,7 @@ tableName [,...] FROM { PUBLIC | userName | roleName }
...
@@ -964,7 +964,7 @@ tableName [,...] FROM { PUBLIC | userName | roleName }
Removes rights for a table from a user or role.
Removes rights for a table from a user or role.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
REVOKE SELECT ON TEST FROM READONLY
REVOKE SELECT ON TEST FROM READONLY
"
"
...
@@ -975,7 +975,7 @@ REVOKE roleName FROM { PUBLIC | userName | roleName }
...
@@ -975,7 +975,7 @@ REVOKE roleName FROM { PUBLIC | userName | roleName }
Removes a role from a user or role.
Removes a role from a user or role.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
REVOKE READONLY FROM TOM
REVOKE READONLY FROM TOM
"
"
...
@@ -1034,7 +1034,7 @@ means all literals are allowed (default).
...
@@ -1034,7 +1034,7 @@ means all literals are allowed (default).
See also CREATE CONSTANT.
See also CREATE CONSTANT.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
This setting can be appended to the database URL: ""jdbc:h2:test;ALLOW_LITERALS=NONE""
This setting can be appended to the database URL: ""jdbc:h2:test;ALLOW_LITERALS=NONE""
","
","
...
@@ -1068,7 +1068,7 @@ This setting only affects the database engine (the server in a client/server env
...
@@ -1068,7 +1068,7 @@ This setting only affects the database engine (the server in a client/server env
It has no effect for in-memory databases.
It has no effect for in-memory databases.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
This setting can be appended to the database URL: ""jdbc:h2:test;CACHE_SIZE=8192""
This setting can be appended to the database URL: ""jdbc:h2:test;CACHE_SIZE=8192""
","
","
...
@@ -1099,7 +1099,7 @@ for version 1.3 and older, and UNSIGNED for version 1.4 and newer.
...
@@ -1099,7 +1099,7 @@ for version 1.3 and older, and UNSIGNED for version 1.4 and newer.
This command can only be executed if there are no tables defined.
This command can only be executed if there are no tables defined.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
","
","
SET BINARY_COLLATION SIGNED
SET BINARY_COLLATION SIGNED
...
@@ -1122,7 +1122,7 @@ The default collator is used if the collation name starts with DEFAULT_
...
@@ -1122,7 +1122,7 @@ The default collator is used if the collation name starts with DEFAULT_
(even if ICU4J is in the classpath).
(even if ICU4J is in the classpath).
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
","
","
SET COLLATION ENGLISH
SET COLLATION ENGLISH
...
@@ -1139,7 +1139,7 @@ Sets the compression algorithm for BLOB and CLOB data. Compression is usually
...
@@ -1139,7 +1139,7 @@ Sets the compression algorithm for BLOB and CLOB data. Compression is usually
slower, but needs less disk space. LZF is faster but uses more space.
slower, but needs less disk space. LZF is faster but uses more space.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
","
","
SET COMPRESS_LOB LZF
SET COMPRESS_LOB LZF
...
@@ -1169,7 +1169,7 @@ Values 1 and larger mean the number of seconds the database is left open after c
...
@@ -1169,7 +1169,7 @@ Values 1 and larger mean the number of seconds the database is left open after c
If the application exits normally or System.exit is called, the database is closed immediately, even if a delay is set.
If the application exits normally or System.exit is called, the database is closed immediately, even if a delay is set.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
This setting can be appended to the database URL: ""jdbc:h2:test;DB_CLOSE_DELAY=-1""
This setting can be appended to the database URL: ""jdbc:h2:test;DB_CLOSE_DELAY=-1""
","
","
...
@@ -1183,7 +1183,7 @@ Sets the default lock timeout (in milliseconds) in this database that is used
...
@@ -1183,7 +1183,7 @@ Sets the default lock timeout (in milliseconds) in this database that is used
for the new sessions. The default value for this setting is 1000 (one second).
for the new sessions. The default value for this setting is 1000 (one second).
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
","
","
SET DEFAULT_LOCK_TIMEOUT 5000
SET DEFAULT_LOCK_TIMEOUT 5000
...
@@ -1198,7 +1198,7 @@ the data is still stored in the database file. The size of memory tables is
...
@@ -1198,7 +1198,7 @@ the data is still stored in the database file. The size of memory tables is
limited by the memory. The default is CACHED.
limited by the memory. The default is CACHED.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
It has no effect for in-memory databases.
It has no effect for in-memory databases.
","
","
...
@@ -1220,7 +1220,7 @@ Only the connection that set the exclusive mode can disable it.
...
@@ -1220,7 +1220,7 @@ Only the connection that set the exclusive mode can disable it.
When the connection is closed, it is automatically disabled.
When the connection is closed, it is automatically disabled.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
SET EXCLUSIVE 1
SET EXCLUSIVE 1
"
"
...
@@ -1235,7 +1235,7 @@ Case-insensitive columns are compared faster than when using a collation.
...
@@ -1235,7 +1235,7 @@ 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.
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.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
This setting can be appended to the database URL: ""jdbc:h2:test;IGNORECASE=TRUE""
This setting can be appended to the database URL: ""jdbc:h2:test;IGNORECASE=TRUE""
","
","
...
@@ -1254,7 +1254,7 @@ The class must be available in the classpath of the database engine
...
@@ -1254,7 +1254,7 @@ The class must be available in the classpath of the database engine
This command can only be executed if there are no tables defined.
This command can only be executed if there are no tables defined.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
This setting can be appended to the database URL: ""jdbc:h2:test;JAVA_OBJECT_SERIALIZER='com.acme.SerializerClassName'""
This setting can be appended to the database URL: ""jdbc:h2:test;JAVA_OBJECT_SERIALIZER='com.acme.SerializerClassName'""
","
","
...
@@ -1282,7 +1282,7 @@ for each checkpoint. This setting is about half as fast as LOG 1. Depending on t
...
@@ -1282,7 +1282,7 @@ for each checkpoint. This setting is about half as fast as LOG 1. Depending on t
file system, this will also protect against power failure in the majority if cases.
file system, this will also protect against power failure in the majority if cases.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is not persistent.
This setting is not persistent.
This setting can be appended to the database URL: ""jdbc:h2:test;LOG=0""
This setting can be appended to the database URL: ""jdbc:h2:test;LOG=0""
","
","
...
@@ -1308,7 +1308,7 @@ The value 3 means table level locking, but read locks are released immediately
...
@@ -1308,7 +1308,7 @@ The value 3 means table level locking, but read locks are released immediately
(default; also known as READ_COMMITTED).
(default; also known as READ_COMMITTED).
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
This setting can be appended to the database URL: ""jdbc:h2:test;LOCK_MODE=3""
This setting can be appended to the database URL: ""jdbc:h2:test;LOCK_MODE=3""
","
","
...
@@ -1336,7 +1336,7 @@ This is the maximum length of an LOB that is stored with the record itself,
...
@@ -1336,7 +1336,7 @@ This is the maximum length of an LOB that is stored with the record itself,
and the default value is 128.
and the default value is 128.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
","
","
SET MAX_LENGTH_INPLACE_LOB 128
SET MAX_LENGTH_INPLACE_LOB 128
...
@@ -1352,7 +1352,7 @@ The default max size is 16 MB.
...
@@ -1352,7 +1352,7 @@ The default max size is 16 MB.
This setting has no effect for in-memory databases.
This setting has no effect for in-memory databases.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
","
","
SET MAX_LOG_SIZE 2
SET MAX_LOG_SIZE 2
...
@@ -1366,7 +1366,7 @@ are read, then the rows are buffered to disk.
...
@@ -1366,7 +1366,7 @@ are read, then the rows are buffered to disk.
The default is 40000 per GB of available RAM.
The default is 40000 per GB of available RAM.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
It has no effect for in-memory databases.
It has no effect for in-memory databases.
","
","
...
@@ -1383,7 +1383,7 @@ Changes to tables without a primary key can not be buffered to disk.
...
@@ -1383,7 +1383,7 @@ Changes to tables without a primary key can not be buffered to disk.
This setting is not supported when using multi-version concurrency.
This setting is not supported when using multi-version concurrency.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
It has no effect for in-memory databases.
It has no effect for in-memory databases.
","
","
...
@@ -1413,7 +1413,7 @@ Modes in the feature section.
...
@@ -1413,7 +1413,7 @@ Modes in the feature section.
This setting is not persistent.
This setting is not persistent.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting can be appended to the database URL: ""jdbc:h2:test;MODE=MYSQL""
This setting can be appended to the database URL: ""jdbc:h2:test;MODE=MYSQL""
","
","
SET MODE HSQLDB
SET MODE HSQLDB
...
@@ -1430,7 +1430,7 @@ This is a global setting, which means it is not possible to open multiple databa
...
@@ -1430,7 +1430,7 @@ This is a global setting, which means it is not possible to open multiple databa
This setting is not persistent, however the value is kept until the virtual machine exits or it is changed.
This setting is not persistent, however the value is kept until the virtual machine exits or it is changed.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting can be appended to the database URL: ""jdbc:h2:test;MULTI_THREADED=1""
This setting can be appended to the database URL: ""jdbc:h2:test;MULTI_THREADED=1""
","
","
SET MULTI_THREADED 1
SET MULTI_THREADED 1
...
@@ -1444,7 +1444,7 @@ subqueries and views used as subqueries are only re-run if the data in one of
...
@@ -1444,7 +1444,7 @@ subqueries and views used as subqueries are only re-run if the data in one of
the tables was changed. This option is enabled by default.
the tables was changed. This option is enabled by default.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting can be appended to the database URL: ""jdbc:h2:test;OPTIMIZE_REUSE_RESULTS=0""
This setting can be appended to the database URL: ""jdbc:h2:test;OPTIMIZE_REUSE_RESULTS=0""
","
","
SET OPTIMIZE_REUSE_RESULTS 0
SET OPTIMIZE_REUSE_RESULTS 0
...
@@ -1456,7 +1456,7 @@ SET PASSWORD string
...
@@ -1456,7 +1456,7 @@ SET PASSWORD string
Changes the password of the current user. The password must be in single quotes.
Changes the password of the current user. The password must be in single quotes.
It is case sensitive and can contain spaces.
It is case sensitive and can contain spaces.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
SET PASSWORD 'abcstzri!.5'
SET PASSWORD 'abcstzri!.5'
"
"
...
@@ -1468,7 +1468,7 @@ Disabled or enables query statistics gathering for the whole database.
...
@@ -1468,7 +1468,7 @@ Disabled or enables query statistics gathering for the whole database.
The statistics are reflected in the INFORMATION_SCHEMA.QUERY_STATISTICS meta-table.
The statistics are reflected in the INFORMATION_SCHEMA.QUERY_STATISTICS meta-table.
This setting is not persistent.
This setting is not persistent.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
","
","
SET QUERY_STATISTICS FALSE
SET QUERY_STATISTICS FALSE
...
@@ -1494,7 +1494,7 @@ Enabling it does not check existing data. Use ALTER TABLE SET to disable it only
...
@@ -1494,7 +1494,7 @@ Enabling it does not check existing data. Use ALTER TABLE SET to disable it only
for one table.
for one table.
This setting is not persistent.
This setting is not persistent.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
","
","
SET REFERENTIAL_INTEGRITY FALSE
SET REFERENTIAL_INTEGRITY FALSE
...
@@ -1513,7 +1513,7 @@ however please note that according to various tests this does not always work as
...
@@ -1513,7 +1513,7 @@ however please note that according to various tests this does not always work as
depending on the operating system and hardware.
depending on the operating system and hardware.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting is persistent.
This setting is persistent.
This setting can be appended to the database URL: ""jdbc:h2:test;RETENTION_TIME=0""
This setting can be appended to the database URL: ""jdbc:h2:test;RETENTION_TIME=0""
","
","
...
@@ -1526,7 +1526,7 @@ SET SALT bytes HASH bytes
...
@@ -1526,7 +1526,7 @@ SET SALT bytes HASH bytes
Sets the password salt and hash for the current user. The password must be in
Sets the password salt and hash for the current user. The password must be in
single quotes. It is case sensitive and can contain spaces.
single quotes. It is case sensitive and can contain spaces.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
SET SALT '00' HASH '1122'
SET SALT '00' HASH '1122'
"
"
...
@@ -1594,7 +1594,7 @@ deleted. The default max size is 16 MB.
...
@@ -1594,7 +1594,7 @@ deleted. The default max size is 16 MB.
This setting is persistent.
This setting is persistent.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting can be appended to the database URL: ""jdbc:h2:test;TRACE_MAX_FILE_SIZE=3""
This setting can be appended to the database URL: ""jdbc:h2:test;TRACE_MAX_FILE_SIZE=3""
","
","
SET TRACE_MAX_FILE_SIZE 10
SET TRACE_MAX_FILE_SIZE 10
...
@@ -1607,7 +1607,7 @@ Enables (1) or disables (0) the per session undo log. The undo log is enabled by
...
@@ -1607,7 +1607,7 @@ Enables (1) or disables (0) the per session undo log. The undo log is enabled by
default. When disabled, transactions can not be rolled back. This setting should
default. When disabled, transactions can not be rolled back. This setting should
only be used for bulk operations that don't need to be atomic.
only be used for bulk operations that don't need to be atomic.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
","
","
SET UNDO_LOG 0
SET UNDO_LOG 0
"
"
...
@@ -1619,7 +1619,7 @@ Set the maximum delay between a commit and flushing the log, in milliseconds.
...
@@ -1619,7 +1619,7 @@ Set the maximum delay between a commit and flushing the log, in milliseconds.
This setting is persistent. The default is 500 ms.
This setting is persistent. The default is 500 ms.
Admin rights are required to execute this command, as it affects all connections.
Admin rights are required to execute this command, as it affects all connections.
This command commits an open transaction.
This command commits an open transaction
in this connection
.
This setting can be appended to the database URL: ""jdbc:h2:test;WRITE_DELAY=0""
This setting can be appended to the database URL: ""jdbc:h2:test;WRITE_DELAY=0""
","
","
SET WRITE_DELAY 2000
SET WRITE_DELAY 2000
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论