Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
470faa53
提交
470faa53
authored
8月 22, 2010
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation: the grammar and function documentation can now be easier translated.
上级
afc79522
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
109 行增加
和
110 行删除
+109
-110
help.csv
h2/src/docsrc/help/help.csv
+109
-110
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
470faa53
...
@@ -21,7 +21,7 @@ LIMIT limits the number of rows returned by the query, OFFSET specified
...
@@ -21,7 +21,7 @@ LIMIT limits the number of rows returned by the query, OFFSET specified
how many rows to skip. SAMPLE_SIZE limits the number of rows read for
how many rows to skip. SAMPLE_SIZE limits the number of rows read for
aggregate queries.
aggregate queries.
Multiple set operators (UNION
/INTERSECT/MINUS/
EXPECT) are evaluated
Multiple set operators (UNION
, INTERSECT, MINUS,
EXPECT) are evaluated
from left to right. For compatibility with other databases and future versions
from left to right. For compatibility with other databases and future versions
of H2 please use parentheses.
of H2 please use parentheses.
...
@@ -386,7 +386,7 @@ CREATE AGGREGATE [ IF NOT EXISTS ] newAggregateName FOR className
...
@@ -386,7 +386,7 @@ CREATE AGGREGATE [ IF NOT EXISTS ] newAggregateName FOR className
","
","
Creates a new user-defined aggregate function. The method name must be the full
Creates a new user-defined aggregate function. The method name must be the full
qualified class name. The class must implement the interface
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.
...
@@ -403,22 +403,22 @@ same value for the same parameters. The result of such functions is cached if po
...
@@ -403,22 +403,22 @@ same value for the same parameters. The result of such functions is cached if po
The method name must be the full qualified class and method name,
The method name must be the full qualified class and method name,
and may optionally include the parameter classes as in
and may optionally include the parameter classes as in
""java.lang.Integer.parseInt(java.lang.String, int)""
)
. The class and the method
""java.lang.Integer.parseInt(java.lang.String, int)"". The class and the method
must both be public, and the method must be static. The class must be available
must both be public, and the method must be static. The class must be available
in the classpath of the database engine (when using the server mode,
in the classpath of the database engine (when using the server mode,
it must be in the classpath of the server).
it must be in the classpath of the server).
When defining a function alias with source code, the Sun
javac
is compiler
When defining a function alias with source code, the Sun
""javac""
is compiler
is used if the
tools.jar is in the classpath. If not, javac
is run as a separate process.
is used if the
file ""tools.jar"" is in the classpath. If not, ""javac""
is run as a separate process.
Only the source code is stored in the database; the class is compiled each time
Only the source code is stored in the database; the class is compiled each time
the database is re-opened. Source code is usually passed
the database is re-opened. Source code is usually passed
as dollar quoted text to avoid escaping problems. If import statements are used,
as dollar quoted text to avoid escaping problems. If import statements are used,
then the tag @CODE must be added before the method.
then the tag @CODE must be added before the method.
If the method throws a SQLException, it is directly re-thrown to the calling application;
If the method throws a
n
SQLException, it is directly re-thrown to the calling application;
all other exceptions are first converted to a SQLException.
all other exceptions are first converted to a SQLException.
If the first parameter of the Java function is a
java.sql.Connection
, then a
If the first parameter of the Java function is a
""java.sql.Connection""
, then a
connection to the database is provided. This connection must not be closed.
connection to the database is provided. This connection must not be closed.
If the class contains multiple methods with the given name but different
If the class contains multiple methods with the given name but different
parameter count, all methods are mapped.
parameter count, all methods are mapped.
...
@@ -490,11 +490,11 @@ rollback), however in this case multi-row unique key updates may not always
...
@@ -490,11 +490,11 @@ rollback), however in this case multi-row unique key updates may not always
work. Linked tables to the same database share one connection.
work. Linked tables to the same database share one connection.
If a query is used instead of the original table name, the table is read only.
If a query is used instead of the original table name, the table is read only.
Queries must be enclosed in parenthesis:
(SELECT * FROM ORDERS)
.
Queries must be enclosed in parenthesis:
""(SELECT * FROM ORDERS)""
.
To use JNDI to get the connection, the driver class must be a
To use JNDI to get the connection, the driver class must be a
javax.naming.Context (for example
javax.naming.InitialContext
), and the URL must
javax.naming.Context (for example
""javax.naming.InitialContext""
), and the URL must
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.
...
@@ -561,10 +561,10 @@ Temporary tables can be global (accessible by all connections)
...
@@ -561,10 +561,10 @@ Temporary tables can be global (accessible by all connections)
or local (only accessible by the current connection).
or local (only accessible by the current connection).
The default for temporary tables is global.
The default for temporary tables is global.
Indexes of temporary tables are kept fully in main memory,
Indexes of temporary tables are kept fully in main memory,
unless the temporary table is created using CREATE CACHED
...
TABLE.
unless the temporary table is created using CREATE CACHED TABLE.
The ENGINE option is only required when custom table implementations are used.
The ENGINE option is only required when custom table implementations are used.
The table engine class must implement the interface
org.h2.api.TableEngine
.
The table engine class must implement the interface
""org.h2.api.TableEngine""
.
Tables with the NOT PERSISTENT modifier are kept fully in memory, and all
Tables with the NOT PERSISTENT modifier are kept fully in memory, and all
rows are lost when the database is closed.
rows are lost when the database is closed.
...
@@ -584,15 +584,15 @@ Creates a new trigger. The trigger class must be public. Inner classes are not s
...
@@ -584,15 +584,15 @@ Creates a new trigger. The trigger class must be public. Inner classes are not s
The class must be available in the classpath of the
The class must be available in the classpath of the
database engine (when using the server mode, it must be in the classpath of the server).
database engine (when using the server mode, it must be in the classpath of the server).
'BEFORE'
triggers are called after data conversion is made, default values are set,
BEFORE
triggers are called after data conversion is made, default values are set,
null and length constraint checks have been made;
null and length constraint checks have been made;
but before other constraints have been checked.
but before other constraints have been checked.
If there are multiple triggers, the order in which they are called is undefined.
If there are multiple triggers, the order in which they are called is undefined.
Only row based
'AFTER'
trigger can be called on rollback.
Only row based
AFTER
trigger can be called on rollback.
Exceptions that occur within such triggers are ignored.
Exceptions that occur within such triggers are ignored.
'INSTEAD OF' triggers are implicitly row based and behave like 'BEFORE'
triggers.
INSTEAD OF triggers are implicitly row based and behave like BEFORE
triggers.
Only the first such trigger is called. Such triggers on views are supported.
Only the first such trigger is called. Such triggers on views are supported.
The MERGE statement will call both INSERT and UPDATE triggers.
The MERGE statement will call both INSERT and UPDATE triggers.
...
@@ -944,7 +944,7 @@ See also CREATE CONSTANT.
...
@@ -944,7 +944,7 @@ See also CREATE CONSTANT.
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.
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""
","
","
SET ALLOW_LITERALS NONE
SET ALLOW_LITERALS NONE
"
"
...
@@ -953,7 +953,7 @@ SET ALLOW_LITERALS NONE
...
@@ -953,7 +953,7 @@ SET ALLOW_LITERALS NONE
SET AUTOCOMMIT { TRUE | ON | FALSE | OFF }
SET AUTOCOMMIT { TRUE | ON | FALSE | OFF }
","
","
Switches auto commit on or off.
Switches auto commit on or off.
This setting can be appended to the database URL:
jdbc:h2:test;AUTOCOMMIT=OFF
-
This setting can be appended to the database URL:
""jdbc:h2:test;AUTOCOMMIT=OFF""
-
however this will not work as expected when using a connection pool
however this will not work as expected when using a connection pool
(the connection pool manager will re-enable autocommit when returning
(the connection pool manager will re-enable autocommit when returning
the connection to the pool, so autocommit will only be disabled the first
the connection to the pool, so autocommit will only be disabled the first
...
@@ -976,7 +976,7 @@ It has no effect for in-memory databases.
...
@@ -976,7 +976,7 @@ It has no effect for in-memory databases.
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.
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""
","
","
SET CACHE_SIZE 8192
SET CACHE_SIZE 8192
"
"
...
@@ -1001,7 +1001,7 @@ SET [ DATABASE ] COLLATION
...
@@ -1001,7 +1001,7 @@ SET [ DATABASE ] COLLATION
{ OFF | collationName [ STRENGTH { PRIMARY | SECONDARY | TERTIARY | IDENTICAL } ] }
{ OFF | collationName [ STRENGTH { PRIMARY | SECONDARY | TERTIARY | IDENTICAL } ] }
","
","
Sets the collation used for comparing strings. This command can only be executed
Sets the collation used for comparing strings. This command can only be executed
if there are no tables defined. See
java.text.Collator
for details about
if there are no tables defined. See
""java.text.Collator""
for details about
STRENGTH.
STRENGTH.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
...
@@ -1032,7 +1032,7 @@ used. This setting is not persistent.
...
@@ -1032,7 +1032,7 @@ used. This setting is not persistent.
Admin rights are required to execute this command, except if it is set when
Admin rights are required to execute this command, except if it is set when
opening the database (in this case it is reset just after opening the database).
opening the database (in this case it is reset just after opening the database).
This setting can be appended to the database URL:
jdbc:h2:test;DATABASE_EVENT_LISTENER='sample.MyListener'
This setting can be appended to the database URL:
""jdbc:h2:test;DATABASE_EVENT_LISTENER='sample.MyListener'""
","
","
SET DATABASE_EVENT_LISTENER 'sample.MyListener'
SET DATABASE_EVENT_LISTENER 'sample.MyListener'
"
"
...
@@ -1052,7 +1052,7 @@ closed immediately, even if a delay is set.
...
@@ -1052,7 +1052,7 @@ closed immediately, even if a delay is set.
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.
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""
","
","
SET DB_CLOSE_DELAY -1
SET DB_CLOSE_DELAY -1
"
"
...
@@ -1121,28 +1121,28 @@ SET IGNORECASE TRUE
...
@@ -1121,28 +1121,28 @@ SET IGNORECASE TRUE
"
"
"Commands (Other)","SET LOG","
"Commands (Other)","SET LOG","
SET LO
CK_MODE
int
SET LO
G
int
","
","
Sets the transaction log mode. The values 0, 1, and 2 are supported, the default is 2.
Sets the transaction log mode. The values 0, 1, and 2 are supported, the default is 2.
This setting affects all connections.
This setting affects all connections.
LOG
=
0 means the transaction log is disabled completely. It is the fastest mode,
LOG
0 means the transaction log is disabled completely. It is the fastest mode,
but also the most dangerous: if the process is killed while the database is open in this mode,
but also the most dangerous: if the process is killed while the database is open in this mode,
the data might be lost. It must only be used if this is not a problem, for example when
the data might be lost. It must only be used if this is not a problem, for example when
initially loading a database, or when running tests.
initially loading a database, or when running tests.
LOG
=
1 means the transaction log is enabled, but FileDescriptor.sync is disabled.
LOG
1 means the transaction log is enabled, but FileDescriptor.sync is disabled.
This setting is about half as fast as with LOG
=
0. This setting is useful if no protection
This setting is about half as fast as with LOG
0. This setting is useful if no protection
against power failure is required, but the data must be protected against killing the process.
against power failure is required, but the data must be protected against killing the process.
LOG
=
2 (the default) means the transaction log is enabled, and FileDescriptor.sync is called
LOG
2 (the default) means the transaction log is enabled, and FileDescriptor.sync is called
for each checkpoint. This setting is about half as fast as LOG
=
1. Depending on the
for each checkpoint. This setting is about half as fast as LOG
1. Depending on the
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.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction.
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""
","
","
SET LOG 1
SET LOG 1
"
"
...
@@ -1168,7 +1168,7 @@ The value 3 means table level locking, but read locks are released immediately
...
@@ -1168,7 +1168,7 @@ The value 3 means table level locking, but read locks are released immediately
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.
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""
","
","
SET LOCK_MODE 1
SET LOCK_MODE 1
"
"
...
@@ -1180,7 +1180,7 @@ Sets the lock timeout (in milliseconds) for the current session. The default
...
@@ -1180,7 +1180,7 @@ Sets the lock timeout (in milliseconds) for the current session. The default
value for this setting is 1000 (one second).
value for this setting is 1000 (one second).
This command does not commit a transaction, and rollback does not affect it.
This command does not commit a transaction, and rollback does not affect it.
This setting can be appended to the database URL:
jdbc:h2:test;LOCK_TIMEOUT=10000
This setting can be appended to the database URL:
""jdbc:h2:test;LOCK_TIMEOUT=10000""
","
","
SET LOCK_TIMEOUT 1000
SET LOCK_TIMEOUT 1000
"
"
...
@@ -1251,7 +1251,7 @@ operation. The default max size is 100000. 0 means no limit.
...
@@ -1251,7 +1251,7 @@ operation. The default max size is 100000. 0 means no limit.
This setting is not persistent.
This setting is not persistent.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This setting can be appended to the database URL:
jdbc:h2:test;MAX_OPERATION_MEMORY=10000
This setting can be appended to the database URL:
""jdbc:h2:test;MAX_OPERATION_MEMORY=10000""
","
","
SET MAX_OPERATION_MEMORY 0
SET MAX_OPERATION_MEMORY 0
"
"
...
@@ -1265,7 +1265,7 @@ Modes in the feature section.
...
@@ -1265,7 +1265,7 @@ Modes in the feature section.
This setting is not persistent.
This setting is not persistent.
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.
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
"
"
...
@@ -1282,7 +1282,7 @@ This setting is not persistent, however the value is kept until the virtual mach
...
@@ -1282,7 +1282,7 @@ This setting is not persistent, however the value is kept until the virtual mach
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.
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
"
"
...
@@ -1296,7 +1296,7 @@ the tables was changed. This option is enabled by default.
...
@@ -1296,7 +1296,7 @@ the tables was changed. This option is enabled by default.
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.
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
"
"
...
@@ -1357,7 +1357,7 @@ in statements where no schema is set explicitly. The default schema for new
...
@@ -1357,7 +1357,7 @@ in statements where no schema is set explicitly. The default schema for new
connections is PUBLIC.
connections is PUBLIC.
This command does not commit a transaction, and rollback does not affect it.
This command does not commit a transaction, and rollback does not affect it.
This setting can be appended to the database URL:
jdbc:h2:test;SCHEMA=ABC
This setting can be appended to the database URL:
""jdbc:h2:test;SCHEMA=ABC""
","
","
SET SCHEMA INFORMATION_SCHEMA
SET SCHEMA INFORMATION_SCHEMA
"
"
...
@@ -1370,7 +1370,7 @@ used in statements where no schema is set explicitly. The default schema for new
...
@@ -1370,7 +1370,7 @@ used in statements where no schema is set explicitly. The default schema for new
connections is PUBLIC.
connections is PUBLIC.
This command does not commit a transaction, and rollback does not affect it.
This command does not commit a transaction, and rollback does not affect it.
This setting can be appended to the database URL:
jdbc:h2:test;SCHEMA_SEARCH_PATH=ABC,DEF
This setting can be appended to the database URL:
""jdbc:h2:test;SCHEMA_SEARCH_PATH=ABC,DEF""
","
","
SET SCHEMA_SEARCH_PATH INFORMATION_SCHEMA, PUBLIC
SET SCHEMA_SEARCH_PATH INFORMATION_SCHEMA, PUBLIC
"
"
...
@@ -1383,7 +1383,7 @@ milliseconds delay after each 50 ms. The default value is 0 (throttling
...
@@ -1383,7 +1383,7 @@ milliseconds delay after each 50 ms. The default value is 0 (throttling
disabled).
disabled).
This command does not commit a transaction, and rollback does not affect it.
This command does not commit a transaction, and rollback does not affect it.
This setting can be appended to the database URL:
jdbc:h2:test;THROTTLE=50
This setting can be appended to the database URL:
""jdbc:h2:test;THROTTLE=50""
","
","
SET THROTTLE 200
SET THROTTLE 200
"
"
...
@@ -1393,12 +1393,12 @@ SET { TRACE_LEVEL_FILE | TRACE_LEVEL_SYSTEM_OUT } int
...
@@ -1393,12 +1393,12 @@ SET { TRACE_LEVEL_FILE | TRACE_LEVEL_SYSTEM_OUT } int
","
","
Sets the trace level for file the file or system out stream. Levels are: 0=off,
Sets the trace level for file the file or system out stream. Levels are: 0=off,
1=error, 2=info, 3=debug. The default level is 1 for file and 0 for system out.
1=error, 2=info, 3=debug. The default level is 1 for file and 0 for system out.
To use SLF4J, append
;TRACE_LEVEL_FILE=4
to the database URL when opening the database.
To use SLF4J, append
"";TRACE_LEVEL_FILE=4""
to the database URL when opening the database.
This setting is not persistent.
This setting is not persistent.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
This command does not commit a transaction, and rollback does not affect it.
This command does not commit a transaction, and rollback does not affect it.
This setting can be appended to the database URL:
jdbc:h2:test;TRACE_LEVEL_SYSTEM_OUT=3
This setting can be appended to the database URL:
""jdbc:h2:test;TRACE_LEVEL_SYSTEM_OUT=3""
","
","
SET TRACE_LEVEL_SYSTEM_OUT 3
SET TRACE_LEVEL_SYSTEM_OUT 3
"
"
...
@@ -1413,7 +1413,7 @@ deleted. The default max size is 16 MB.
...
@@ -1413,7 +1413,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.
Admin rights are required to execute this command.
This command commits an open transaction.
This command commits an open transaction.
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
"
"
...
@@ -1438,7 +1438,7 @@ This setting is persistent. The default is 500 ms.
...
@@ -1438,7 +1438,7 @@ This setting is persistent. The default is 500 ms.
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.
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
"
"
...
@@ -1455,7 +1455,7 @@ All connections are closed, open transactions are rolled back.
...
@@ -1455,7 +1455,7 @@ All connections are closed, open transactions are rolled back.
SHUTDOWN COMPACT fully compacts the database (re-creating the database may further reduce the database size).
SHUTDOWN COMPACT fully compacts the database (re-creating the database may further reduce the database size).
If the database is closed normally (using SHUTDOWN or by closing all connections), then the database is also compacted,
If the database is closed normally (using SHUTDOWN or by closing all connections), then the database is also compacted,
but only for at most the time defined by the system property
h2.maxCompactTime
(see there).
but only for at most the time defined by the system property
""h2.maxCompactTime""
(see there).
SHUTDOWN IMMEDIATELY closes the database files without any cleanup and without compacting.
SHUTDOWN IMMEDIATELY closes the database files without any cleanup and without compacting.
...
@@ -1600,7 +1600,7 @@ Each character that follows the escape character in the pattern needs to match e
...
@@ -1600,7 +1600,7 @@ Each character that follows the escape character in the pattern needs to match e
Patterns that end with an escape character are invalid and the expression returns NULL.
Patterns that end with an escape character are invalid and the expression returns NULL.
When comparing with REGEXP, regular expression matching is used.
When comparing with REGEXP, regular expression matching is used.
See Java
Matcher.find
for details.
See Java
""Matcher.find""
for details.
","
","
LIKE 'Jo%'
LIKE 'Jo%'
"
"
...
@@ -1648,7 +1648,7 @@ INT
...
@@ -1648,7 +1648,7 @@ INT
DATE 'yyyy-MM-dd'
DATE 'yyyy-MM-dd'
","
","
A date literal. The limitations are the same as for the Java data type
A date literal. The limitations are the same as for the Java data type
java.sql.Date
, but for compatibility with other databases the suggested minimum
""java.sql.Date""
, but for compatibility with other databases the suggested minimum
and maximum years are 0001 and 9999.
and maximum years are 0001 and 9999.
","
","
DATE '2004-12-31'
DATE '2004-12-31'
...
@@ -1868,7 +1868,7 @@ value
...
@@ -1868,7 +1868,7 @@ value
| caseWhen
| caseWhen
| tableAlias.columnName
| tableAlias.columnName
","
","
A value. Parameters can be indexed, for example
?1
meaning the first parameter.
A value. Parameters can be indexed, for example
""?1""
meaning the first parameter.
","
","
'Hello'
'Hello'
"
"
...
@@ -1885,7 +1885,7 @@ TIME '23:59:59'
...
@@ -1885,7 +1885,7 @@ TIME '23:59:59'
TIMESTAMP 'yyyy-MM-dd hh:mm:ss[.nnnnnnnnn]'
TIMESTAMP 'yyyy-MM-dd hh:mm:ss[.nnnnnnnnn]'
","
","
A timestamp literal. The limitations are the same as for the Java data type
A timestamp literal. The limitations are the same as for the Java data type
java.sql.Timestamp
, but for compatibility with other databases the suggested
""java.sql.Timestamp""
, but for compatibility with other databases the suggested
minimum and maximum years are 0001 and 9999.
minimum and maximum years are 0001 and 9999.
","
","
TIMESTAMP '2005-12-31 23:59:59'
TIMESTAMP '2005-12-31 23:59:59'
...
@@ -1905,7 +1905,7 @@ INT | INTEGER | MEDIUMINT | INT4 | SIGNED
...
@@ -1905,7 +1905,7 @@ INT | INTEGER | MEDIUMINT | INT4 | SIGNED
","
","
Possible values: -2147483648 to 2147483647.
Possible values: -2147483648 to 2147483647.
Mapped to
java.lang.Integer
.
Mapped to
""java.lang.Integer""
.
","
","
INT
INT
"
"
...
@@ -1915,7 +1915,7 @@ BOOLEAN | BIT | BOOL
...
@@ -1915,7 +1915,7 @@ BOOLEAN | BIT | BOOL
","
","
Possible values: TRUE and FALSE.
Possible values: TRUE and FALSE.
Mapped to
java.lang.Boolean
.
Mapped to
""java.lang.Boolean""
.
","
","
BOOLEAN
BOOLEAN
"
"
...
@@ -1925,7 +1925,7 @@ TINYINT
...
@@ -1925,7 +1925,7 @@ TINYINT
","
","
Possible values are: -128 to 127.
Possible values are: -128 to 127.
Mapped to
java.lang.Byte
.
Mapped to
""java.lang.Byte""
.
","
","
TINYINT
TINYINT
"
"
...
@@ -1935,7 +1935,7 @@ SMALLINT | INT2 | YEAR
...
@@ -1935,7 +1935,7 @@ SMALLINT | INT2 | YEAR
","
","
Possible values: -32768 to 32767.
Possible values: -32768 to 32767.
Mapped to
java.lang.Short
.
Mapped to
""java.lang.Short""
.
","
","
SMALLINT
SMALLINT
"
"
...
@@ -1945,7 +1945,7 @@ BIGINT | INT8
...
@@ -1945,7 +1945,7 @@ BIGINT | INT8
","
","
Possible values: -9223372036854775808 to 9223372036854775807.
Possible values: -9223372036854775808 to 9223372036854775807.
Mapped to
java.lang.Long
.
Mapped to
""java.lang.Long""
.
","
","
BIGINT
BIGINT
"
"
...
@@ -1957,7 +1957,7 @@ Auto-Increment value. Possible values: -9223372036854775808 to
...
@@ -1957,7 +1957,7 @@ Auto-Increment value. Possible values: -9223372036854775808 to
9223372036854775807. Used values are never re-used, even when the transaction is
9223372036854775807. Used values are never re-used, even when the transaction is
rolled back.
rolled back.
Mapped to
java.lang.Long
.
Mapped to
""java.lang.Long""
.
","
","
IDENTITY
IDENTITY
"
"
...
@@ -1968,7 +1968,7 @@ IDENTITY
...
@@ -1968,7 +1968,7 @@ IDENTITY
Data type with fixed precision and scale. This data type is recommended for
Data type with fixed precision and scale. This data type is recommended for
storing currency values.
storing currency values.
Mapped to
java.math.BigDecimal
.
Mapped to
""java.math.BigDecimal""
.
","
","
DECIMAL(20, 2)
DECIMAL(20, 2)
"
"
...
@@ -1979,7 +1979,7 @@ DECIMAL(20, 2)
...
@@ -1979,7 +1979,7 @@ DECIMAL(20, 2)
Floating point number. Should not be used to represent currency values, because
Floating point number. Should not be used to represent currency values, because
of rounding problems.
of rounding problems.
Mapped to
java.lang.Double
.
Mapped to
""java.lang.Double""
.
","
","
DOUBLE
DOUBLE
"
"
...
@@ -1990,7 +1990,7 @@ REAL
...
@@ -1990,7 +1990,7 @@ REAL
Single precision floating point number. Should not be used to represent currency
Single precision floating point number. Should not be used to represent currency
values, because of rounding problems.
values, because of rounding problems.
Mapped to
java.lang.Float
.
Mapped to
""java.lang.Float""
.
","
","
REAL
REAL
"
"
...
@@ -2000,7 +2000,7 @@ TIME
...
@@ -2000,7 +2000,7 @@ TIME
","
","
The format is hh:mm:ss.
The format is hh:mm:ss.
Mapped to
java.sql.Time. When converted to a java.sql.Date, the date is set to 1970-01-01
.
Mapped to
""java.sql.Time"". When converted to a ""java.sql.Date"", the date is set to ""1970-01-01""
.
","
","
TIME
TIME
"
"
...
@@ -2010,7 +2010,7 @@ DATE
...
@@ -2010,7 +2010,7 @@ DATE
","
","
The format is yyyy-MM-dd.
The format is yyyy-MM-dd.
Mapped to
java.sql.Date, with the time set to 00:00:00
Mapped to
""java.sql.Date"", with the time set to ""00:00:00""
(or to the next possible time if midnight doesn't exist for the given date and timezone due to a daylight saving change).
(or to the next possible time if midnight doesn't exist for the given date and timezone due to a daylight saving change).
","
","
DATE
DATE
...
@@ -2021,7 +2021,7 @@ DATE
...
@@ -2021,7 +2021,7 @@ DATE
","
","
The format is yyyy-MM-dd hh:mm:ss[.nnnnnnnnn].
The format is yyyy-MM-dd hh:mm:ss[.nnnnnnnnn].
Mapped to
java.sql.Timestamp (java.util.Date
is also supported).
Mapped to
""java.sql.Timestamp"" (""java.util.Date""
is also supported).
","
","
TIMESTAMP
TIMESTAMP
"
"
...
@@ -2045,11 +2045,11 @@ OTHER
...
@@ -2045,11 +2045,11 @@ OTHER
","
","
This type allows storing serialized Java objects. Internally, a byte array is
This type allows storing serialized Java objects. Internally, a byte array is
used. Serialization and deserialization is done on the client side only.
used. Serialization and deserialization is done on the client side only.
Deserialization is only done get
getObject
is called. Java operations cannot be
Deserialization is only done get
""getObject""
is called. Java operations cannot be
executed inside the database engine for security reasons. Use
executed inside the database engine for security reasons. Use
PreparedStatement.setObject
to store values.
""PreparedStatement.setObject""
to store values.
Mapped to
java.lang.Object
(or any subclass).
Mapped to
""java.lang.Object""
(or any subclass).
","
","
OTHER
OTHER
"
"
...
@@ -2059,11 +2059,11 @@ OTHER
...
@@ -2059,11 +2059,11 @@ OTHER
| NVARCHAR2 | VARCHAR_CASESENSITIVE} [ ( precisionInt ) ]
| NVARCHAR2 | VARCHAR_CASESENSITIVE} [ ( precisionInt ) ]
","
","
Unicode String. Use two single quotes ('') to create a quote. The maximum precision
Unicode String. Use two single quotes ('') to create a quote. The maximum precision
is
Integer.MAX_VALUE
. The precision is a size constraint; only the actual data is
is
""Integer.MAX_VALUE""
. The precision is a size constraint; only the actual data is
persisted. The whole text is kept in memory when using this data type. For large text data CLOB
persisted. The whole text is kept in memory when using this data type. For large text data CLOB
should be used; see there for details.
should be used; see there for details.
Mapped to
java.lang.String
.
Mapped to
""java.lang.String""
.
","
","
VARCHAR(255)
VARCHAR(255)
"
"
...
@@ -2072,11 +2072,11 @@ VARCHAR(255)
...
@@ -2072,11 +2072,11 @@ VARCHAR(255)
VARCHAR_IGNORECASE [ ( precisionInt ) ]
VARCHAR_IGNORECASE [ ( precisionInt ) ]
","
","
Same as VARCHAR, but not case sensitive when comparing. Stored in mixed case.
Same as VARCHAR, but not case sensitive when comparing. Stored in mixed case.
The maximum precision is
Integer.MAX_VALUE
characters, but the whole text is kept in
The maximum precision is
""Integer.MAX_VALUE""
characters, but the whole text is kept in
memory when using this data type. For large text data CLOB should be used;
memory when using this data type. For large text data CLOB should be used;
see there for details.
see there for details.
Mapped to
java.lang.String
.
Mapped to
""java.lang.String""
.
","
","
VARCHAR_IGNORECASE
VARCHAR_IGNORECASE
"
"
...
@@ -2087,11 +2087,11 @@ VARCHAR_IGNORECASE
...
@@ -2087,11 +2087,11 @@ VARCHAR_IGNORECASE
This type is supported for compatibility with other databases and older
This type is supported for compatibility with other databases and older
applications. The difference to VARCHAR is that trailing spaces are ignored and
applications. The difference to VARCHAR is that trailing spaces are ignored and
not persisted. Unicode String. Use two single quotes ('') to create a quote.
not persisted. Unicode String. Use two single quotes ('') to create a quote.
The maximum precision is
Integer.MAX_VALUE
. The precision is a size constraint;
The maximum precision is
""Integer.MAX_VALUE""
. The precision is a size constraint;
only the actual data is persisted. The whole text is kept in memory when using
only the actual data is persisted. The whole text is kept in memory when using
this data type. For large text data CLOB should be used; see there for details.
this data type. For large text data CLOB should be used; see there for details.
Mapped to
java.lang.String
.
Mapped to
""java.lang.String""
.
","
","
CHAR(10)
CHAR(10)
"
"
...
@@ -2101,10 +2101,10 @@ CHAR(10)
...
@@ -2101,10 +2101,10 @@ CHAR(10)
","
","
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
PreparedStatement.setBinaryStream
to store values. See also CLOB and
""PreparedStatement.setBinaryStream""
to store values. See also CLOB and
Advanced / Large Objects.
Advanced / Large Objects.
Mapped to
java.sql.Blob (java.io.InputStream
is also supported).
Mapped to
""java.sql.Blob"" (""java.io.InputStream""
is also supported).
","
","
BLOB
BLOB
"
"
...
@@ -2116,13 +2116,13 @@ CLOB is like VARCHAR, but intended for very large values. Unlike when using
...
@@ -2116,13 +2116,13 @@ 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.
CLOB should be used for documents and texts with arbitrary size such as XML or
CLOB should be used for documents and texts with arbitrary size such as XML or
HTML documents, text files, or memo fields of unlimited size. Use
HTML documents, text files, or memo fields of unlimited size. Use
PreparedStatement.setCharacterStream
to store values. See also Advanced / Large Objects.
""PreparedStatement.setCharacterStream""
to store values. See also Advanced / Large Objects.
VARCHAR should be used for text with relatively short average size (for example
VARCHAR should be used for text with relatively short average size (for example
shorter than 200 characters). Short CLOB values are stored inline, but there is
shorter than 200 characters). Short CLOB values are stored inline, but there is
an overhead compared to VARCHAR.
an overhead compared to VARCHAR.
Mapped to
java.sql.Clob (java.io.Reader
is also supported).
Mapped to
""java.sql.Clob"" (""java.io.Reader""
is also supported).
","
","
CLOB
CLOB
"
"
...
@@ -2131,9 +2131,9 @@ CLOB
...
@@ -2131,9 +2131,9 @@ CLOB
UUID
UUID
","
","
Universally unique identifier. This is a 128 bit value. Use
Universally unique identifier. This is a 128 bit value. Use
PreparedStatement.setBytes or setString
to store values.
""PreparedStatement.setBytes"" or ""setString""
to store values.
Mapped to
java.util.UUID
.
Mapped to
""java.util.UUID""
.
","
","
UUID
UUID
"
"
...
@@ -2141,10 +2141,9 @@ UUID
...
@@ -2141,10 +2141,9 @@ UUID
"Data Types","ARRAY Type","
"Data Types","ARRAY Type","
ARRAY
ARRAY
","
","
An array of values. Use a value list (1, 2) or PreparedStatement.setObject(..,
An array of values. Use a value list (1, 2) or ""PreparedStatement.setObject(.., new Object[] {..})"" to store values.
new Object[] {..}) to store values.
Mapped to
java.lang.Object[]
(arrays of any non-primitive type are also supported).
Mapped to
""java.lang.Object[]""
(arrays of any non-primitive type are also supported).
","
","
ARRAY
ARRAY
"
"
...
@@ -2297,8 +2296,8 @@ VAR_SAMP(X)
...
@@ -2297,8 +2296,8 @@ VAR_SAMP(X)
"Functions (Numeric)","ABS","
"Functions (Numeric)","ABS","
ABS ( { int | long | decimal | double } )
ABS ( { int | long | decimal | double } )
","
","
See also Java
Math.abs
.
See also Java
""Math.abs""
.
Please note that
Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE and Math.abs(Long.MIN_VALUE) == Long.MIN_VALUE
.
Please note that
""Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE"" and ""Math.abs(Long.MIN_VALUE) == Long.MIN_VALUE""
.
The returned value is of the same data type as the parameter.
The returned value is of the same data type as the parameter.
","
","
ABS(ID)
ABS(ID)
...
@@ -2307,7 +2306,7 @@ ABS(ID)
...
@@ -2307,7 +2306,7 @@ ABS(ID)
"Functions (Numeric)","ACOS","
"Functions (Numeric)","ACOS","
ACOS(double)
ACOS(double)
","
","
See also Java
Math.*
functions.
See also Java
""Math.*""
functions.
This method returns a double.
This method returns a double.
","
","
ACOS(D)
ACOS(D)
...
@@ -2316,7 +2315,7 @@ ACOS(D)
...
@@ -2316,7 +2315,7 @@ ACOS(D)
"Functions (Numeric)","ASIN","
"Functions (Numeric)","ASIN","
ASIN(double)
ASIN(double)
","
","
See also Java
Math.*
functions.
See also Java
""Math.*""
functions.
This method returns a double.
This method returns a double.
","
","
ASIN(D)
ASIN(D)
...
@@ -2325,7 +2324,7 @@ ASIN(D)
...
@@ -2325,7 +2324,7 @@ ASIN(D)
"Functions (Numeric)","ATAN","
"Functions (Numeric)","ATAN","
ATAN(double)
ATAN(double)
","
","
See also Java
Math.*
functions.
See also Java
""Math.*""
functions.
This method returns a double.
This method returns a double.
","
","
ATAN(D)
ATAN(D)
...
@@ -2334,7 +2333,7 @@ ATAN(D)
...
@@ -2334,7 +2333,7 @@ ATAN(D)
"Functions (Numeric)","COS","
"Functions (Numeric)","COS","
COS(double)
COS(double)
","
","
See also Java
Math.*
functions.
See also Java
""Math.*""
functions.
This method returns a double.
This method returns a double.
","
","
COS(ANGLE)
COS(ANGLE)
...
@@ -2343,7 +2342,7 @@ COS(ANGLE)
...
@@ -2343,7 +2342,7 @@ COS(ANGLE)
"Functions (Numeric)","COT","
"Functions (Numeric)","COT","
COT(double)
COT(double)
","
","
See also Java
Math.*
functions.
See also Java
""Math.*""
functions.
This method returns a double.
This method returns a double.
","
","
COT(ANGLE)
COT(ANGLE)
...
@@ -2352,7 +2351,7 @@ COT(ANGLE)
...
@@ -2352,7 +2351,7 @@ COT(ANGLE)
"Functions (Numeric)","SIN","
"Functions (Numeric)","SIN","
SIN(double)
SIN(double)
","
","
See also Java
Math.*
functions.
See also Java
""Math.*""
functions.
This method returns a double.
This method returns a double.
","
","
SIN(ANGLE)
SIN(ANGLE)
...
@@ -2361,7 +2360,7 @@ SIN(ANGLE)
...
@@ -2361,7 +2360,7 @@ SIN(ANGLE)
"Functions (Numeric)","TAN","
"Functions (Numeric)","TAN","
TAN(double)
TAN(double)
","
","
See also Java
Math.*
functions.
See also Java
""Math.*""
functions.
This method returns a double.
This method returns a double.
","
","
TAN(ANGLE)
TAN(ANGLE)
...
@@ -2370,7 +2369,7 @@ TAN(ANGLE)
...
@@ -2370,7 +2369,7 @@ TAN(ANGLE)
"Functions (Numeric)","ATAN2","
"Functions (Numeric)","ATAN2","
ATAN2(double, double)
ATAN2(double, double)
","
","
See also Java
Math.atan2
.
See also Java
""Math.atan2""
.
This method returns a double.
This method returns a double.
","
","
ATAN2(X, Y)
ATAN2(X, Y)
...
@@ -2419,7 +2418,7 @@ MOD(A, B)
...
@@ -2419,7 +2418,7 @@ MOD(A, B)
"Functions (Numeric)","CEILING","
"Functions (Numeric)","CEILING","
CEILING(double)
CEILING(double)
","
","
See also Java
Math.ceil
.
See also Java
""Math.ceil""
.
This method returns a double.
This method returns a double.
","
","
LOG(A)
LOG(A)
...
@@ -2428,7 +2427,7 @@ LOG(A)
...
@@ -2428,7 +2427,7 @@ LOG(A)
"Functions (Numeric)","DEGREES","
"Functions (Numeric)","DEGREES","
DEGREES(double)
DEGREES(double)
","
","
See also Java
Math.toDegrees
.
See also Java
""Math.toDegrees""
.
This method returns a double.
This method returns a double.
","
","
DEGREES(A)
DEGREES(A)
...
@@ -2437,7 +2436,7 @@ DEGREES(A)
...
@@ -2437,7 +2436,7 @@ DEGREES(A)
"Functions (Numeric)","EXP","
"Functions (Numeric)","EXP","
EXP(double)
EXP(double)
","
","
See also Java
Math.exp
.
See also Java
""Math.exp""
.
This method returns a double.
This method returns a double.
","
","
EXP(A)
EXP(A)
...
@@ -2446,7 +2445,7 @@ EXP(A)
...
@@ -2446,7 +2445,7 @@ EXP(A)
"Functions (Numeric)","FLOOR","
"Functions (Numeric)","FLOOR","
FLOOR(double)
FLOOR(double)
","
","
See also Java
Math.floor
.
See also Java
""Math.floor""
.
This method returns a double.
This method returns a double.
","
","
FLOOR(A)
FLOOR(A)
...
@@ -2455,7 +2454,7 @@ FLOOR(A)
...
@@ -2455,7 +2454,7 @@ FLOOR(A)
"Functions (Numeric)","LOG","
"Functions (Numeric)","LOG","
LOG(double)
LOG(double)
","
","
See also Java
Math.log
.
See also Java
""Math.log""
.
This method returns a double.
This method returns a double.
","
","
LOG(A)
LOG(A)
...
@@ -2464,7 +2463,7 @@ LOG(A)
...
@@ -2464,7 +2463,7 @@ LOG(A)
"Functions (Numeric)","LOG10","
"Functions (Numeric)","LOG10","
LOG10(double)
LOG10(double)
","
","
See also Java
Math.log10
(in Java 5).
See also Java
""Math.log10""
(in Java 5).
This method returns a double.
This method returns a double.
","
","
LOG10(A)
LOG10(A)
...
@@ -2473,7 +2472,7 @@ LOG10(A)
...
@@ -2473,7 +2472,7 @@ LOG10(A)
"Functions (Numeric)","RADIANS","
"Functions (Numeric)","RADIANS","
RADIANS(double)
RADIANS(double)
","
","
See also Java
Math.toRadians
.
See also Java
""Math.toRadians""
.
This method returns a double.
This method returns a double.
","
","
RADIANS(A)
RADIANS(A)
...
@@ -2482,7 +2481,7 @@ RADIANS(A)
...
@@ -2482,7 +2481,7 @@ RADIANS(A)
"Functions (Numeric)","SQRT","
"Functions (Numeric)","SQRT","
SQRT(double)
SQRT(double)
","
","
See also Java
Math.sqrt
.
See also Java
""Math.sqrt""
.
This method returns a double.
This method returns a double.
","
","
SQRT(A)
SQRT(A)
...
@@ -2491,7 +2490,7 @@ SQRT(A)
...
@@ -2491,7 +2490,7 @@ SQRT(A)
"Functions (Numeric)","PI","
"Functions (Numeric)","PI","
PI()
PI()
","
","
See also Java
Math.PI
.
See also Java
""Math.PI""
.
This method returns a double.
This method returns a double.
","
","
PI()
PI()
...
@@ -2500,7 +2499,7 @@ PI()
...
@@ -2500,7 +2499,7 @@ PI()
"Functions (Numeric)","POWER","
"Functions (Numeric)","POWER","
POWER(double, double)
POWER(double, double)
","
","
See also Java
Math.pow
.
See also Java
""Math.pow""
.
This method returns a double.
This method returns a double.
","
","
POWER(A, B)
POWER(A, B)
...
@@ -2721,7 +2720,7 @@ RAWTOHEX(DATA)
...
@@ -2721,7 +2720,7 @@ RAWTOHEX(DATA)
"Functions (String)","INSTR","
"Functions (String)","INSTR","
INSTR(string, searchString, [, startInt])
INSTR(string, searchString, [, startInt])
","
","
Returns the location of a search string in a string
(s)
.
Returns the location of a search string in a string.
If a start position is used, the characters before it are ignored.
If a start position is used, the characters before it are ignored.
If position is negative, the rightmost location is returned.
If position is negative, the rightmost location is returned.
0 is returned if the search string is not found.
0 is returned if the search string is not found.
...
@@ -2839,7 +2838,7 @@ TRIM(BOTH '_' FROM NAME)
...
@@ -2839,7 +2838,7 @@ TRIM(BOTH '_' FROM NAME)
REGEXP_REPLACE(inputString, regexString, replacementString)
REGEXP_REPLACE(inputString, regexString, replacementString)
","
","
Replaces each substring that matches a regular expression.
Replaces each substring that matches a regular expression.
For details, see the Java
String.replaceAll()
method.
For details, see the Java
""String.replaceAll()""
method.
If any parameter is null, the result is null.
If any parameter is null, the result is null.
","
","
REGEXP_REPLACE('Hello World', ' +', ' ')
REGEXP_REPLACE('Hello World', ' +', ' ')
...
@@ -2915,7 +2914,7 @@ CALL UTF8TOSTRING(STRINGTOUTF8('This is a test'))
...
@@ -2915,7 +2914,7 @@ CALL UTF8TOSTRING(STRINGTOUTF8('This is a test'))
","
","
Returns a substring of a string starting at a position.
Returns a substring of a string starting at a position.
The length is optional.
The length is optional.
Also supported is:
SUBSTRING(string FROM start [FOR length])
.
Also supported is:
""SUBSTRING(string FROM start [FOR length])""
.
","
","
SUBSTR(NAME, 1)
SUBSTR(NAME, 1)
"
"
...
@@ -2931,7 +2930,7 @@ CALL UTF8TOSTRING(STRINGTOUTF8('This is a test'))
...
@@ -2931,7 +2930,7 @@ CALL UTF8TOSTRING(STRINGTOUTF8('This is a test'))
"Functions (String)","XMLATTR","
"Functions (String)","XMLATTR","
XMLATTR(nameString, valueString)
XMLATTR(nameString, valueString)
","
","
Creates an XML attribute element of the form
name=""
value"".
Creates an XML attribute element of the form
""name=
value"".
The value is encoded as XML text.
The value is encoded as XML text.
This method returns a string.
This method returns a string.
","
","
...
@@ -2951,7 +2950,7 @@ CALL XMLNODE('a', XMLATTR('href', 'http://h2database.com'), 'H2')
...
@@ -2951,7 +2950,7 @@ CALL XMLNODE('a', XMLATTR('href', 'http://h2database.com'), 'H2')
XMLCOMMENT(commentString)
XMLCOMMENT(commentString)
","
","
Creates an XML comment.
Creates an XML comment.
Two dashes (
--) are converted to - -
.
Two dashes (
""--"") are converted to ""- -""
.
This method returns a string.
This method returns a string.
","
","
CALL XMLCOMMENT('Test')
CALL XMLCOMMENT('Test')
...
@@ -2961,7 +2960,7 @@ CALL XMLCOMMENT('Test')
...
@@ -2961,7 +2960,7 @@ CALL XMLCOMMENT('Test')
XMLCDATA(valueString)
XMLCDATA(valueString)
","
","
Creates an XML CDATA element.
Creates an XML CDATA element.
If the value contains
']]>'
, an XML text element is created instead.
If the value contains
""]]>""
, an XML text element is created instead.
This method returns a string.
This method returns a string.
","
","
CALL XMLCDATA('data')
CALL XMLCDATA('data')
...
@@ -2970,7 +2969,7 @@ CALL XMLCDATA('data')
...
@@ -2970,7 +2969,7 @@ CALL XMLCDATA('data')
"Functions (String)","XMLSTARTDOC","
"Functions (String)","XMLSTARTDOC","
XMLSTARTDOC()
XMLSTARTDOC()
","
","
The string
'<?xml version=""1.0""?>'
is returned.
The string
""<?xml version='1.0'?>""
is returned.
","
","
CALL XMLSTARTDOC()
CALL XMLSTARTDOC()
"
"
...
@@ -3082,7 +3081,7 @@ FORMATDATETIME ( timestamp, formatString
...
@@ -3082,7 +3081,7 @@ FORMATDATETIME ( timestamp, formatString
Formats a date, time or timestamp as a string.
Formats a date, time or timestamp as a string.
The most important format characters are:
The most important format characters are:
y year, M month, d day, H hour, m minute, s second.
y year, M month, d day, H hour, m minute, s second.
For details of the format, see
java.text.SimpleDateFormat
.
For details of the format, see
""java.text.SimpleDateFormat""
.
This method returns a string.
This method returns a string.
","
","
CALL FORMATDATETIME(TIMESTAMP '2001-02-03 04:05:06',
CALL FORMATDATETIME(TIMESTAMP '2001-02-03 04:05:06',
...
@@ -3128,7 +3127,7 @@ PARSEDATETIME(string, formatString
...
@@ -3128,7 +3127,7 @@ PARSEDATETIME(string, formatString
Parses a string and returns a timestamp.
Parses a string and returns a timestamp.
The most important format characters are:
The most important format characters are:
y year, M month, d day, H hour, m minute, s second.
y year, M month, d day, H hour, m minute, s second.
For details of the format, see
java.text.SimpleDateFormat
.
For details of the format, see
""java.text.SimpleDateFormat""
.
","
","
CALL PARSEDATETIME('Sat, 3 Feb 2001 03:05:06 GMT',
CALL PARSEDATETIME('Sat, 3 Feb 2001 03:05:06 GMT',
'EEE, d MMM yyyy HH:mm:ss z', 'en', 'GMT')
'EEE, d MMM yyyy HH:mm:ss z', 'en', 'GMT')
...
@@ -3270,9 +3269,9 @@ parsed as NULL. All columns of type VARCHAR.
...
@@ -3270,9 +3269,9 @@ parsed as NULL. All columns of type VARCHAR.
The BOM (the byte-order-mark) character 0xfeff at the beginning of the file is ignored.
The BOM (the byte-order-mark) character 0xfeff at the beginning of the file is ignored.
This function can be used like a table:
SELECT * FROM CSVREAD(...)
.
This function can be used like a table:
""SELECT * FROM CSVREAD(...)""
.
Instead of a file, an URL may be used, for example
Instead of a file, an URL may be used, for example
jar:file:///c:/temp/example.zip!/org/example/nested.zip
.
""jar:file:///c:/temp/example.zip!/org/example/nested.zip""
.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
","
","
...
@@ -3297,7 +3296,7 @@ The values are converted to text using the default string representation;
...
@@ -3297,7 +3296,7 @@ The values are converted to text using the default string representation;
if another conversion is required you need to change the select statement accordingly.
if another conversion is required you need to change the select statement accordingly.
The parameter nullString is used when writing NULL (by default nothing is written
The parameter nullString is used when writing NULL (by default nothing is written
when NULL appears). The default line separator is the default value for this
when NULL appears). The default line separator is the default value for this
system (
'line.separator' system property
).
system (
system property ""line.separator""
).
The returned value is the number or rows written.
The returned value is the number or rows written.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
...
@@ -3350,7 +3349,7 @@ IDENTITY()
...
@@ -3350,7 +3349,7 @@ IDENTITY()
","
","
Returns the last inserted identity value for this session.
Returns the last inserted identity value for this session.
This value changes whenever a new sequence number was generated,
This value changes whenever a new sequence number was generated,
even within a trigger or Java function. See also SCOPE_IDENTITY
()
.
even within a trigger or Java function. See also SCOPE_IDENTITY.
This method returns a long.
This method returns a long.
","
","
CALL IDENTITY();
CALL IDENTITY();
...
@@ -3521,7 +3520,7 @@ TRANSACTION_ID()
...
@@ -3521,7 +3520,7 @@ TRANSACTION_ID()
Returns the current transaction id for this session.
Returns the current transaction id for this session.
This method returns NULL if there is no uncommitted change, or if the the database is not persisted.
This method returns NULL if there is no uncommitted change, or if the the database is not persisted.
Otherwise a value of the following form is returned:
Otherwise a value of the following form is returned:
logFileId-position-sessionId
.
""logFileId-position-sessionId""
.
This method returns a string.
This method returns a string.
The value is unique across database restarts (values are not re-used).
The value is unique across database restarts (values are not re-used).
","
","
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论