提交 2900c117 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 8063302d
...@@ -460,7 +460,7 @@ CREATE DOMAIN [ IF NOT EXISTS ] newDomainName AS dataType ...@@ -460,7 +460,7 @@ CREATE DOMAIN [ IF NOT EXISTS ] newDomainName AS dataType
[ CHECK condition ] [ CHECK condition ]
"," ","
Creates a new data type (domain). The check condition must evaluate to true or Creates a new data type (domain). The check condition must evaluate to true or
to NULL (to prevent NULL, use NOT NULL). In the condition, the term VALUE refers to NULL (to prevent NULL, use ""NOT NULL""). In the condition, the term VALUE refers
to the value being tested. 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.
...@@ -1478,7 +1478,7 @@ All connections are closed, open transactions are rolled back. ...@@ -1478,7 +1478,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 database setting ""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.
...@@ -1555,7 +1555,7 @@ CASE WHEN CNT<10 THEN 'Low' ELSE 'High' END ...@@ -1555,7 +1555,7 @@ CASE WHEN CNT<10 THEN 'Low' ELSE 'High' END
"Other Grammar","Cipher"," "Other Grammar","Cipher","
{ AES | XTEA } { AES | XTEA }
"," ","
Two algorithms are supported: AES (AES-128) and XTEA (using 32 rounds). Two algorithms are supported: AES (""AES-128"") and XTEA (using 32 rounds).
XTEA is a bit faster than AES in some environments, but AES is more secure. XTEA is a bit faster than AES in some environments, but AES is more secure.
"," ","
AES AES
...@@ -1617,14 +1617,14 @@ compare { { { ALL | ANY | SOME } ( select ) } | operand } ...@@ -1617,14 +1617,14 @@ compare { { { ALL | ANY | SOME } ( select ) } | operand }
"," ","
The right hand side of a condition. The right hand side of a condition.
The conditions IS [ NOT ] and IS [ NOT ] DISTINCT FROM are NULL-safe, meaning The conditions ""IS [ NOT ]"" and ""IS [ NOT ] DISTINCT FROM"" are null-safe, meaning
NULL is considered the same as NULL, and the condition never evaluates to NULL. NULL is considered the same as NULL, and the condition never evaluates to NULL.
When comparing with LIKE, the wildcards characters are _ (any one character) When comparing with LIKE, the wildcards characters are ""_"" (any one character)
and % (any characters). The database uses an index when comparing with LIKE and ""%"" (any characters). The database uses an index when comparing with LIKE
except if the operand starts with a wildcard. To search for the characters % and except if the operand starts with a wildcard. To search for the characters ""%"" and
_, the characters need to be escaped. The default escape character is \ (backslash). ""_"", the characters need to be escaped. The default escape character is "" \ "" (backslash).
To select no escape character, use ESCAPE '' (empty string). To select no escape character, use ""ESCAPE ''"" (empty string).
At most one escape character is allowed. At most one escape character is allowed.
Each character that follows the escape character in the pattern needs to match exactly. Each character that follows the escape character in the pattern needs to match exactly.
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.
...@@ -1665,15 +1665,15 @@ charsetString [, fieldSepString [, fieldDelimString [, escString [, nullString]] ...@@ -1665,15 +1665,15 @@ charsetString [, fieldSepString [, fieldDelimString [, escString [, nullString]]
Optional parameters for CSVREAD and CSVWRITE. Optional parameters for CSVREAD and CSVWRITE.
Instead of setting the options one by one, all options can be Instead of setting the options one by one, all options can be
combined into a space separated key-value pairs, as follows: combined into a space separated key-value pairs, as follows:
STRINGDECODE('charset=UTF-8 escape=\"" fieldDelimiter=\"" fieldSeparator=, ' || ""STRINGDECODE('charset=UTF-8 escape=\"" fieldDelimiter=\"" fieldSeparator=, ' ||""
'lineComment=# lineSeparator=\n null= rowSeparator='). ""'lineComment=# lineSeparator=\n null= rowSeparator=')"".
The following options are supported: The following options are supported:
charset, escape, fieldDelimiter, fieldSeparator, ""charset"", ""escape"", ""fieldDelimiter"", ""fieldSeparator"",
lineComment (# for H2 version 1.2, disabled for H2 version 1.3), ""lineComment"" (""#"" for H2 version 1.2, disabled for H2 version 1.3),
lineSeparator, null, rowSeparator (not set by default). ""lineSeparator"", ""null"", ""rowSeparator"" (not set by default).
For a newline or other special character, use STRINGDECODE as in the example above. For a newline or other special character, use STRINGDECODE as in the example above.
A space needs to be escaped with a backslash ('\ '). A space needs to be escaped with a backslash (""'\ '"").
A backslash needs to be escaped with another backslash ('\\'). A backslash needs to be escaped with another backslash (""'\\'"").
"," ","
CALL CSVWRITE('test2.csv', 'SELECT * FROM TEST', 'charset=UTF-8 fieldSeparator=|'); CALL CSVWRITE('test2.csv', 'SELECT * FROM TEST', 'charset=UTF-8 fieldSeparator=|');
" "
...@@ -1731,9 +1731,9 @@ $$John's car$$ ...@@ -1731,9 +1731,9 @@ $$John's car$$
A floating point number with high precision. A floating point number with high precision.
The limitations are the same as for the Java data type Double. The limitations are the same as for the Java data type Double.
To ensure the floating point representation is used, use CAST. To ensure the floating point representation is used, use CAST.
There are some special values: to represent positive infinity, use POWER(0, -1); There are some special values: to represent positive infinity, use ""POWER(0, -1)"";
for negative infinity, use (-POWER(0, -1)); for -0.0, use (-CAST(0 AS DOUBLE)); for negative infinity, use ""(-POWER(0, -1))""; for -0.0, use ""(-CAST(0 AS DOUBLE))"";
for NaN (not a number), use SQRT(-1). for ""NaN"" (not a number), use ""SQRT(-1)"".
"," ","
-1.4e-10 -1.4e-10
CAST(0 AS DOUBLE) CAST(0 AS DOUBLE)
...@@ -1898,7 +1898,7 @@ factor [ { { + | - } factor } [...] ] ...@@ -1898,7 +1898,7 @@ factor [ { { + | - } factor } [...] ]
"," ","
A value or a numeric sum. A value or a numeric sum.
Please note the text concatenation operator is ||. Please note the text concatenation operator is ""||"".
"," ","
ID + 20 ID + 20
" "
...@@ -2369,7 +2369,8 @@ ABS(ID) ...@@ -2369,7 +2369,8 @@ ABS(ID)
"Functions (Numeric)","ACOS"," "Functions (Numeric)","ACOS","
ACOS(double) ACOS(double)
"," ","
See also Java ""Math.*"" functions. Calculate the arc cosine.
See also Java ""Math.acos"".
This method returns a double. This method returns a double.
"," ","
ACOS(D) ACOS(D)
...@@ -2378,7 +2379,8 @@ ACOS(D) ...@@ -2378,7 +2379,8 @@ ACOS(D)
"Functions (Numeric)","ASIN"," "Functions (Numeric)","ASIN","
ASIN(double) ASIN(double)
"," ","
See also Java ""Math.*"" functions. Calculate the arc sine.
See also Java ""Math.asin"".
This method returns a double. This method returns a double.
"," ","
ASIN(D) ASIN(D)
...@@ -2387,7 +2389,8 @@ ASIN(D) ...@@ -2387,7 +2389,8 @@ ASIN(D)
"Functions (Numeric)","ATAN"," "Functions (Numeric)","ATAN","
ATAN(double) ATAN(double)
"," ","
See also Java ""Math.*"" functions. Calculate the arc tangent.
See also Java ""Math.atan"".
This method returns a double. This method returns a double.
"," ","
ATAN(D) ATAN(D)
...@@ -2396,7 +2399,8 @@ ATAN(D) ...@@ -2396,7 +2399,8 @@ ATAN(D)
"Functions (Numeric)","COS"," "Functions (Numeric)","COS","
COS(double) COS(double)
"," ","
See also Java ""Math.*"" functions. Calculate the trigonometric cosine.
See also Java ""Math.cos"".
This method returns a double. This method returns a double.
"," ","
COS(ANGLE) COS(ANGLE)
...@@ -2405,6 +2409,7 @@ COS(ANGLE) ...@@ -2405,6 +2409,7 @@ COS(ANGLE)
"Functions (Numeric)","COT"," "Functions (Numeric)","COT","
COT(double) COT(double)
"," ","
Calculate the trigonometric cotangent (""1/TAN(ANGLE)"").
See also Java ""Math.*"" functions. See also Java ""Math.*"" functions.
This method returns a double. This method returns a double.
"," ","
...@@ -2414,7 +2419,8 @@ COT(ANGLE) ...@@ -2414,7 +2419,8 @@ COT(ANGLE)
"Functions (Numeric)","SIN"," "Functions (Numeric)","SIN","
SIN(double) SIN(double)
"," ","
See also Java ""Math.*"" functions. Calculate the trigonometric sine.
See also Java ""Math.sin"".
This method returns a double. This method returns a double.
"," ","
SIN(ANGLE) SIN(ANGLE)
...@@ -2423,7 +2429,8 @@ SIN(ANGLE) ...@@ -2423,7 +2429,8 @@ SIN(ANGLE)
"Functions (Numeric)","TAN"," "Functions (Numeric)","TAN","
TAN(double) TAN(double)
"," ","
See also Java ""Math.*"" functions. Calculate the trigonometric tangent.
See also Java ""Math.tan"".
This method returns a double. This method returns a double.
"," ","
TAN(ANGLE) TAN(ANGLE)
...@@ -2432,6 +2439,7 @@ TAN(ANGLE) ...@@ -2432,6 +2439,7 @@ TAN(ANGLE)
"Functions (Numeric)","ATAN2"," "Functions (Numeric)","ATAN2","
ATAN2(double, double) ATAN2(double, double)
"," ","
Calculate the angle when converting the rectangular coordinates to polar coordinates.
See also Java ""Math.atan2"". See also Java ""Math.atan2"".
This method returns a double. This method returns a double.
"," ","
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -503,7 +503,7 @@ Returns the first expression where the condition is true." ...@@ -503,7 +503,7 @@ Returns the first expression where the condition is true."
"Other Grammar","Cipher"," "Other Grammar","Cipher","
{ AES | XTEA } { AES | XTEA }
"," ","
Two algorithms are supported: AES (AES-128) and XTEA (using 32 rounds)." Two algorithms are supported: AES (""AES-128"") and XTEA (using 32 rounds)."
"Other Grammar","Column Definition"," "Other Grammar","Column Definition","
columnName dataType columnName dataType
[ { DEFAULT expression | AS computedColumnExpression } ] [ [ NOT ] NULL ] [ { DEFAULT expression | AS computedColumnExpression } ] [ [ NOT ] NULL ]
...@@ -832,35 +832,35 @@ See also Java ""Math." ...@@ -832,35 +832,35 @@ See also Java ""Math."
"Functions (Numeric)","ACOS"," "Functions (Numeric)","ACOS","
ACOS(double) ACOS(double)
"," ","
See also Java ""Math." Calculate the arc cosine."
"Functions (Numeric)","ASIN"," "Functions (Numeric)","ASIN","
ASIN(double) ASIN(double)
"," ","
See also Java ""Math." Calculate the arc sine."
"Functions (Numeric)","ATAN"," "Functions (Numeric)","ATAN","
ATAN(double) ATAN(double)
"," ","
See also Java ""Math." Calculate the arc tangent."
"Functions (Numeric)","COS"," "Functions (Numeric)","COS","
COS(double) COS(double)
"," ","
See also Java ""Math." Calculate the trigonometric cosine."
"Functions (Numeric)","COT"," "Functions (Numeric)","COT","
COT(double) COT(double)
"," ","
See also Java ""Math." Calculate the trigonometric cotangent (""1/TAN(ANGLE)"")."
"Functions (Numeric)","SIN"," "Functions (Numeric)","SIN","
SIN(double) SIN(double)
"," ","
See also Java ""Math." Calculate the trigonometric sine."
"Functions (Numeric)","TAN"," "Functions (Numeric)","TAN","
TAN(double) TAN(double)
"," ","
See also Java ""Math." Calculate the trigonometric tangent."
"Functions (Numeric)","ATAN2"," "Functions (Numeric)","ATAN2","
ATAN2(double, double) ATAN2(double, double)
"," ","
See also Java ""Math." Calculate the angle when converting the rectangular coordinates to polar coordinates."
"Functions (Numeric)","BITAND"," "Functions (Numeric)","BITAND","
BITAND(long, long) BITAND(long, long)
"," ","
......
...@@ -201,7 +201,7 @@ public class GenerateDoc { ...@@ -201,7 +201,7 @@ public class GenerateDoc {
buff.append("</code>"); buff.append("</code>");
code = false; code = false;
} }
} else if (codeQuoted && c == '\"') { } else if (codeQuoted && c == '\"' && (i == 0 || text.charAt(i - 1) != '\\')) {
buff.append("</code>"); buff.append("</code>");
codeQuoted = false; codeQuoted = false;
continue; continue;
......
...@@ -678,4 +678,5 @@ clip upgrades demonstrate inspectors ...@@ -678,4 +678,5 @@ clip upgrades demonstrate inspectors
exceed identities differentiate inherited tracks strip suggestions exceed identities differentiate inherited tracks strip suggestions
registration sanity improperly annotate inheritance composite inspected registration sanity improperly annotate inheritance composite inspected
hurt imposes marshal policy upgrader configurations dark varray xlint executor hurt imposes marshal policy upgrader configurations dark varray xlint executor
completion inactivity exports maintains backside schwietzke rene completion inactivity exports maintains backside schwietzke rene rectangular
sine cosine tangent cotangent trigonometric
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论