Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
9ded294c
提交
9ded294c
authored
6月 04, 2011
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
adabda79
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
1731 行增加
和
1686 行删除
+1731
-1686
help.csv
h2/src/docsrc/help/help.csv
+54
-51
changelog.html
h2/src/docsrc/html/changelog.html
+1
-1
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+549
-531
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+549
-531
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+536
-530
help.csv
h2/src/main/org/h2/res/help.csv
+39
-40
TestSelectCountNonNullColumn.java
h2/src/test/org/h2/test/db/TestSelectCountNonNullColumn.java
+2
-1
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
9ded294c
...
@@ -1712,11 +1712,18 @@ DATE '2004-12-31'
...
@@ -1712,11 +1712,18 @@ DATE '2004-12-31'
"
"
"Other Grammar","Decimal","
"Other Grammar","Decimal","
[ + | - ]
number [ . number
]
[ + | - ]
{ { number [ . number ] } | { . number } } [ E [ + | - ] expNumber [...] ]
]
","
","
Number with fixed precision and scale.
A decimal number with fixed precision and scale.
Internally, ""java.lang.BigDecimal"" is used.
To ensure the floating point representation is used, use CAST(X AS DOUBLE).
There are some special decimal 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 ""NaN"" (not a number), use ""SQRT(-1)"".
","
","
-1600.05
SELECT -1600.05
SELECT CAST(0 AS DOUBLE)
SELECT -1.4e-10
"
"
"Other Grammar","Digit","
"Other Grammar","Digit","
...
@@ -1737,20 +1744,6 @@ No escaping is required within the text.
...
@@ -1737,20 +1744,6 @@ No escaping is required within the text.
$$John's car$$
$$John's car$$
"
"
"Other Grammar","Double","
[ + | - ] { { number [ . number ] } | { . number } } [ E [ + | - ] expNumber [...] ] ]
","
A floating point number with high precision.
The limitations are the same as for the Java data type Double.
To ensure the floating point representation is used, use CAST.
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 ""NaN"" (not a number), use ""SQRT(-1)"".
","
-1.4e-10
CAST(0 AS DOUBLE)
"
"Other Grammar","Expression","
"Other Grammar","Expression","
andCondition [ { OR andCondition } [...] ]
andCondition [ { OR andCondition } [...] ]
","
","
...
@@ -1834,6 +1827,17 @@ The maximum length of the number depends on the data type used.
...
@@ -1834,6 +1827,17 @@ The maximum length of the number depends on the data type used.
100
100
"
"
"Other Grammar","Numeric","
int | long | decimal | hexNumber
","
The data type of a number is always the lowest possible for the given value.
If the number contains a dot this is decimal; otherwise it is int, long, or decimal (depending on the value).
","
SELECT -1600.05
SELECT CAST(0 AS DOUBLE)
SELECT -1.4e-10
"
"Other Grammar","Operand","
"Other Grammar","Operand","
summand [ { || summand } [...] ]
summand [ { || summand } [...] ]
","
","
...
@@ -1983,10 +1987,9 @@ TIMESTAMP '2005-12-31 23:59:59'
...
@@ -1983,10 +1987,9 @@ TIMESTAMP '2005-12-31 23:59:59'
"
"
"Other Grammar","Value","
"Other Grammar","Value","
string | dollarQuotedString | hexNumber | int | long | decimal | double
string | dollarQuotedString | numeric | date | time | timestamp | boolean | bytes | array | null
| date | time | timestamp | boolean | bytes | array | null
","
","
A value of any data type, or null.
A
literal
value of any data type, or null.
","
","
10
10
"
"
...
@@ -2242,7 +2245,7 @@ ARRAY
...
@@ -2242,7 +2245,7 @@ ARRAY
"
"
"Functions (Aggregate)","AVG","
"Functions (Aggregate)","AVG","
AVG ( [ DISTINCT ] {
int | long | decimal | double
} )
AVG ( [ DISTINCT ] {
numeric
} )
","
","
The average (mean) value.
The average (mean) value.
If no rows are selected, the result is NULL.
If no rows are selected, the result is NULL.
...
@@ -2320,7 +2323,7 @@ MIN(NAME)
...
@@ -2320,7 +2323,7 @@ MIN(NAME)
"
"
"Functions (Aggregate)","SUM","
"Functions (Aggregate)","SUM","
SUM( [ DISTINCT ] {
int | long | decimal | double
} )
SUM( [ DISTINCT ] {
numeric
} )
","
","
The sum of all values.
The sum of all values.
If no rows are selected, the result is NULL.
If no rows are selected, the result is NULL.
...
@@ -2343,7 +2346,7 @@ SELECT SELECTIVITY(FIRSTNAME), SELECTIVITY(NAME) FROM TEST WHERE ROWNUM()<20000
...
@@ -2343,7 +2346,7 @@ SELECT SELECTIVITY(FIRSTNAME), SELECTIVITY(NAME) FROM TEST WHERE ROWNUM()<20000
"
"
"Functions (Aggregate)","STDDEV_POP","
"Functions (Aggregate)","STDDEV_POP","
STDDEV_POP( [ DISTINCT ]
double
)
STDDEV_POP( [ DISTINCT ]
numeric
)
","
","
The population standard deviation.
The population standard deviation.
This method returns a double.
This method returns a double.
...
@@ -2354,7 +2357,7 @@ STDDEV_POP(X)
...
@@ -2354,7 +2357,7 @@ STDDEV_POP(X)
"
"
"Functions (Aggregate)","STDDEV_SAMP","
"Functions (Aggregate)","STDDEV_SAMP","
STDDEV_SAMP( [ DISTINCT ]
double
)
STDDEV_SAMP( [ DISTINCT ]
numeric
)
","
","
The sample standard deviation.
The sample standard deviation.
This method returns a double.
This method returns a double.
...
@@ -2365,7 +2368,7 @@ STDDEV(X)
...
@@ -2365,7 +2368,7 @@ STDDEV(X)
"
"
"Functions (Aggregate)","VAR_POP","
"Functions (Aggregate)","VAR_POP","
VAR_POP( [ DISTINCT ]
double
)
VAR_POP( [ DISTINCT ]
numeric
)
","
","
The population variance (square of the population standard deviation).
The population variance (square of the population standard deviation).
This method returns a double.
This method returns a double.
...
@@ -2376,7 +2379,7 @@ VAR_POP(X)
...
@@ -2376,7 +2379,7 @@ VAR_POP(X)
"
"
"Functions (Aggregate)","VAR_SAMP","
"Functions (Aggregate)","VAR_SAMP","
VAR_SAMP( [ DISTINCT ]
double
)
VAR_SAMP( [ DISTINCT ]
numeric
)
","
","
The sample variance (square of the sample standard deviation).
The sample variance (square of the sample standard deviation).
This method returns a double.
This method returns a double.
...
@@ -2387,7 +2390,7 @@ VAR_SAMP(X)
...
@@ -2387,7 +2390,7 @@ VAR_SAMP(X)
"
"
"Functions (Numeric)","ABS","
"Functions (Numeric)","ABS","
ABS ( {
int | long | decimal | double
} )
ABS ( {
numeric
} )
","
","
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"".
...
@@ -2397,7 +2400,7 @@ ABS(ID)
...
@@ -2397,7 +2400,7 @@ ABS(ID)
"
"
"Functions (Numeric)","ACOS","
"Functions (Numeric)","ACOS","
ACOS(
double
)
ACOS(
numeric
)
","
","
Calculate the arc cosine.
Calculate the arc cosine.
See also Java ""Math.acos"".
See also Java ""Math.acos"".
...
@@ -2407,7 +2410,7 @@ ACOS(D)
...
@@ -2407,7 +2410,7 @@ ACOS(D)
"
"
"Functions (Numeric)","ASIN","
"Functions (Numeric)","ASIN","
ASIN(
double
)
ASIN(
numeric
)
","
","
Calculate the arc sine.
Calculate the arc sine.
See also Java ""Math.asin"".
See also Java ""Math.asin"".
...
@@ -2417,7 +2420,7 @@ ASIN(D)
...
@@ -2417,7 +2420,7 @@ ASIN(D)
"
"
"Functions (Numeric)","ATAN","
"Functions (Numeric)","ATAN","
ATAN(
double
)
ATAN(
numeric
)
","
","
Calculate the arc tangent.
Calculate the arc tangent.
See also Java ""Math.atan"".
See also Java ""Math.atan"".
...
@@ -2427,7 +2430,7 @@ ATAN(D)
...
@@ -2427,7 +2430,7 @@ ATAN(D)
"
"
"Functions (Numeric)","COS","
"Functions (Numeric)","COS","
COS(
double
)
COS(
numeric
)
","
","
Calculate the trigonometric cosine.
Calculate the trigonometric cosine.
See also Java ""Math.cos"".
See also Java ""Math.cos"".
...
@@ -2437,7 +2440,7 @@ COS(ANGLE)
...
@@ -2437,7 +2440,7 @@ COS(ANGLE)
"
"
"Functions (Numeric)","COSH","
"Functions (Numeric)","COSH","
COSH(
double
)
COSH(
numeric
)
","
","
Calculate the hyperbolic cosine.
Calculate the hyperbolic cosine.
See also Java ""Math.cosh"".
See also Java ""Math.cosh"".
...
@@ -2447,7 +2450,7 @@ COSH(X)
...
@@ -2447,7 +2450,7 @@ COSH(X)
"
"
"Functions (Numeric)","COT","
"Functions (Numeric)","COT","
COT(
double
)
COT(
numeric
)
","
","
Calculate the trigonometric cotangent (""1/TAN(ANGLE)"").
Calculate the trigonometric cotangent (""1/TAN(ANGLE)"").
See also Java ""Math.*"" functions.
See also Java ""Math.*"" functions.
...
@@ -2457,7 +2460,7 @@ COT(ANGLE)
...
@@ -2457,7 +2460,7 @@ COT(ANGLE)
"
"
"Functions (Numeric)","SIN","
"Functions (Numeric)","SIN","
SIN(
double
)
SIN(
numeric
)
","
","
Calculate the trigonometric sine.
Calculate the trigonometric sine.
See also Java ""Math.sin"".
See also Java ""Math.sin"".
...
@@ -2467,7 +2470,7 @@ SIN(ANGLE)
...
@@ -2467,7 +2470,7 @@ SIN(ANGLE)
"
"
"Functions (Numeric)","SINH","
"Functions (Numeric)","SINH","
SINH(
double
)
SINH(
numeric
)
","
","
Calculate the hyperbolic sine.
Calculate the hyperbolic sine.
See also Java ""Math.sinh"".
See also Java ""Math.sinh"".
...
@@ -2477,7 +2480,7 @@ SINH(ANGLE)
...
@@ -2477,7 +2480,7 @@ SINH(ANGLE)
"
"
"Functions (Numeric)","TAN","
"Functions (Numeric)","TAN","
TAN(
double
)
TAN(
numeric
)
","
","
Calculate the trigonometric tangent.
Calculate the trigonometric tangent.
See also Java ""Math.tan"".
See also Java ""Math.tan"".
...
@@ -2487,7 +2490,7 @@ TAN(ANGLE)
...
@@ -2487,7 +2490,7 @@ TAN(ANGLE)
"
"
"Functions (Numeric)","TANH","
"Functions (Numeric)","TANH","
TANH(
double
)
TANH(
numeric
)
","
","
Calculate the hyperbolic tangent.
Calculate the hyperbolic tangent.
See also Java ""Math.tanh"".
See also Java ""Math.tanh"".
...
@@ -2497,7 +2500,7 @@ TANH(X)
...
@@ -2497,7 +2500,7 @@ TANH(X)
"
"
"Functions (Numeric)","ATAN2","
"Functions (Numeric)","ATAN2","
ATAN2(
double, double
)
ATAN2(
numeric, numeric
)
","
","
Calculate the angle when converting the rectangular coordinates to polar coordinates.
Calculate the angle when converting the rectangular coordinates to polar coordinates.
See also Java ""Math.atan2"".
See also Java ""Math.atan2"".
...
@@ -2547,7 +2550,7 @@ MOD(A, B)
...
@@ -2547,7 +2550,7 @@ MOD(A, B)
"
"
"Functions (Numeric)","CEILING","
"Functions (Numeric)","CEILING","
{ CEILING | CEIL } (
double
)
{ CEILING | CEIL } (
numeric
)
","
","
See also Java ""Math.ceil"".
See also Java ""Math.ceil"".
This method returns a double.
This method returns a double.
...
@@ -2556,7 +2559,7 @@ CEIL(A)
...
@@ -2556,7 +2559,7 @@ CEIL(A)
"
"
"Functions (Numeric)","DEGREES","
"Functions (Numeric)","DEGREES","
DEGREES(
double
)
DEGREES(
numeric
)
","
","
See also Java ""Math.toDegrees"".
See also Java ""Math.toDegrees"".
This method returns a double.
This method returns a double.
...
@@ -2565,7 +2568,7 @@ DEGREES(A)
...
@@ -2565,7 +2568,7 @@ DEGREES(A)
"
"
"Functions (Numeric)","EXP","
"Functions (Numeric)","EXP","
EXP(
double
)
EXP(
numeric
)
","
","
See also Java ""Math.exp"".
See also Java ""Math.exp"".
This method returns a double.
This method returns a double.
...
@@ -2574,7 +2577,7 @@ EXP(A)
...
@@ -2574,7 +2577,7 @@ EXP(A)
"
"
"Functions (Numeric)","FLOOR","
"Functions (Numeric)","FLOOR","
FLOOR(
double
)
FLOOR(
numeric
)
","
","
See also Java ""Math.floor"".
See also Java ""Math.floor"".
This method returns a double.
This method returns a double.
...
@@ -2583,7 +2586,7 @@ FLOOR(A)
...
@@ -2583,7 +2586,7 @@ FLOOR(A)
"
"
"Functions (Numeric)","LOG","
"Functions (Numeric)","LOG","
{ LOG | LN } (
double
)
{ LOG | LN } (
numeric
)
","
","
See also Java ""Math.log"".
See also Java ""Math.log"".
This method returns a double.
This method returns a double.
...
@@ -2592,7 +2595,7 @@ LOG(A)
...
@@ -2592,7 +2595,7 @@ LOG(A)
"
"
"Functions (Numeric)","LOG10","
"Functions (Numeric)","LOG10","
LOG10(
double
)
LOG10(
numeric
)
","
","
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.
...
@@ -2601,7 +2604,7 @@ LOG10(A)
...
@@ -2601,7 +2604,7 @@ LOG10(A)
"
"
"Functions (Numeric)","RADIANS","
"Functions (Numeric)","RADIANS","
RADIANS(
double
)
RADIANS(
numeric
)
","
","
See also Java ""Math.toRadians"".
See also Java ""Math.toRadians"".
This method returns a double.
This method returns a double.
...
@@ -2610,7 +2613,7 @@ RADIANS(A)
...
@@ -2610,7 +2613,7 @@ RADIANS(A)
"
"
"Functions (Numeric)","SQRT","
"Functions (Numeric)","SQRT","
SQRT(
double
)
SQRT(
numeric
)
","
","
See also Java ""Math.sqrt"".
See also Java ""Math.sqrt"".
This method returns a double.
This method returns a double.
...
@@ -2628,7 +2631,7 @@ PI()
...
@@ -2628,7 +2631,7 @@ PI()
"
"
"Functions (Numeric)","POWER","
"Functions (Numeric)","POWER","
POWER(
double, double
)
POWER(
numeric, numeric
)
","
","
See also Java ""Math.pow"".
See also Java ""Math.pow"".
This method returns a double.
This method returns a double.
...
@@ -2655,7 +2658,7 @@ RANDOM_UUID()
...
@@ -2655,7 +2658,7 @@ RANDOM_UUID()
"
"
"Functions (Numeric)","ROUND","
"Functions (Numeric)","ROUND","
ROUND(
double
, digitsInt)
ROUND(
numeric
, digitsInt)
","
","
Rounds to a number of digits.
Rounds to a number of digits.
This method returns a double.
This method returns a double.
...
@@ -2664,7 +2667,7 @@ ROUND(VALUE, 2)
...
@@ -2664,7 +2667,7 @@ ROUND(VALUE, 2)
"
"
"Functions (Numeric)","ROUNDMAGIC","
"Functions (Numeric)","ROUNDMAGIC","
ROUNDMAGIC(
double
)
ROUNDMAGIC(
numeric
)
","
","
This function rounds numbers in a good way, but it is slow.
This function rounds numbers in a good way, but it is slow.
It has a special handling for numbers around 0.
It has a special handling for numbers around 0.
...
@@ -2686,7 +2689,7 @@ CALL SECURE_RAND(16)
...
@@ -2686,7 +2689,7 @@ CALL SECURE_RAND(16)
"
"
"Functions (Numeric)","SIGN","
"Functions (Numeric)","SIGN","
SIGN ( {
int | long | decimal | double
} )
SIGN ( {
numeric
} )
","
","
Returns -1 if the value is smaller 0, 0 if zero, and otherwise 1.
Returns -1 if the value is smaller 0, 0 if zero, and otherwise 1.
","
","
...
@@ -2727,7 +2730,7 @@ CALL HASH('SHA256', STRINGTOUTF8('Password'), 1000)
...
@@ -2727,7 +2730,7 @@ CALL HASH('SHA256', STRINGTOUTF8('Password'), 1000)
"
"
"Functions (Numeric)","TRUNCATE","
"Functions (Numeric)","TRUNCATE","
TRUNCATE(
double
, digitsInt)
TRUNCATE(
numeric
, digitsInt)
","
","
Truncates to a number of digits (to the next value closer to 0).
Truncates to a number of digits (to the next value closer to 0).
This method returns a double.
This method returns a double.
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
9ded294c
...
@@ -25,7 +25,7 @@ Change Log
...
@@ -25,7 +25,7 @@ Change Log
To detect unclosed connections, a PhantomReference is used.
To detect unclosed connections, a PhantomReference is used.
</li><li>
Issue 322: Left joins didn't work when used as subquery in the form clause.
</li><li>
Issue 322: Left joins didn't work when used as subquery in the form clause.
</li><li>
A prepared statement if type CALL that returned a result set could
</li><li>
A prepared statement if type CALL that returned a result set could
throw a NullPointerEx
ec
ption if executed multiple times.
throw a NullPointerEx
ce
ption if executed multiple times.
</li><li>
The following built-in functions were marked as deterministic and therefore
</li><li>
The following built-in functions were marked as deterministic and therefore
not re-executed when using in a prepared statement:
not re-executed when using in a prepared statement:
LOCK_TIMEOUT, LINK_SCHEMA, CANCEL_SESSION, FILE_READ.
LOCK_TIMEOUT, LINK_SCHEMA, CANCEL_SESSION, FILE_READ.
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
9ded294c
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
9ded294c
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
9ded294c
差异被折叠。
点击展开。
h2/src/main/org/h2/res/help.csv
浏览文件 @
9ded294c
...
@@ -564,9 +564,9 @@ DATE 'yyyy-MM-dd'
...
@@ -564,9 +564,9 @@ DATE 'yyyy-MM-dd'
","
","
A date literal."
A date literal."
"Other Grammar","Decimal","
"Other Grammar","Decimal","
[ + | - ]
number [ . number
]
[ + | - ]
{ { number [ . number ] } | { . number } } [ E [ + | - ] expNumber [...] ]
]
","
","
N
umber with fixed precision and scale."
A decimal n
umber with fixed precision and scale."
"Other Grammar","Digit","
"Other Grammar","Digit","
0-9
0-9
","
","
...
@@ -575,10 +575,6 @@ A digit."
...
@@ -575,10 +575,6 @@ A digit."
$$anythingExceptTwoDollarSigns$$
$$anythingExceptTwoDollarSigns$$
","
","
A string starts and ends with two dollar signs."
A string starts and ends with two dollar signs."
"Other Grammar","Double","
[ + | - ] { { number [ . number ] } | { . number } } [ E [ + | - ] expNumber [...] ] ]
","
A floating point number with high precision."
"Other Grammar","Expression","
"Other Grammar","Expression","
andCondition [ { OR andCondition } [...] ]
andCondition [ { OR andCondition } [...] ]
","
","
...
@@ -619,6 +615,10 @@ NULL is a value without data type and means 'unknown value'."
...
@@ -619,6 +615,10 @@ NULL is a value without data type and means 'unknown value'."
digit [...]
digit [...]
","
","
The maximum length of the number depends on the data type used."
The maximum length of the number depends on the data type used."
"Other Grammar","Numeric","
int | long | decimal | hexNumber
","
The data type of a number is always the lowest possible for the given value."
"Other Grammar","Operand","
"Other Grammar","Operand","
summand [ { || summand } [...] ]
summand [ { || summand } [...] ]
","
","
...
@@ -690,10 +690,9 @@ TIMESTAMP 'yyyy-MM-dd hh:mm:ss[.nnnnnnnnn]'
...
@@ -690,10 +690,9 @@ TIMESTAMP 'yyyy-MM-dd hh:mm:ss[.nnnnnnnnn]'
","
","
A timestamp literal."
A timestamp literal."
"Other Grammar","Value","
"Other Grammar","Value","
string | dollarQuotedString | hexNumber | int | long | decimal | double
string | dollarQuotedString | numeric | date | time | timestamp | boolean | bytes | array | null
| date | time | timestamp | boolean | bytes | array | null
","
","
A value of any data type, or null."
A
literal
value of any data type, or null."
"Data Types","INT Type","
"Data Types","INT Type","
INT | INTEGER | MEDIUMINT | INT4 | SIGNED
INT | INTEGER | MEDIUMINT | INT4 | SIGNED
","
","
...
@@ -781,7 +780,7 @@ ARRAY
...
@@ -781,7 +780,7 @@ ARRAY
","
","
An array of values."
An array of values."
"Functions (Aggregate)","AVG","
"Functions (Aggregate)","AVG","
AVG ( [ DISTINCT ] {
int | long | decimal | double
} )
AVG ( [ DISTINCT ] {
numeric
} )
","
","
The average (mean) value."
The average (mean) value."
"Functions (Aggregate)","BOOL_AND","
"Functions (Aggregate)","BOOL_AND","
...
@@ -811,7 +810,7 @@ MIN(value)
...
@@ -811,7 +810,7 @@ MIN(value)
","
","
The lowest value."
The lowest value."
"Functions (Aggregate)","SUM","
"Functions (Aggregate)","SUM","
SUM( [ DISTINCT ] {
int | long | decimal | double
} )
SUM( [ DISTINCT ] {
numeric
} )
","
","
The sum of all values."
The sum of all values."
"Functions (Aggregate)","SELECTIVITY","
"Functions (Aggregate)","SELECTIVITY","
...
@@ -819,67 +818,67 @@ SELECTIVITY(value)
...
@@ -819,67 +818,67 @@ SELECTIVITY(value)
","
","
Estimates the selectivity (0-100) of a value."
Estimates the selectivity (0-100) of a value."
"Functions (Aggregate)","STDDEV_POP","
"Functions (Aggregate)","STDDEV_POP","
STDDEV_POP( [ DISTINCT ]
double
)
STDDEV_POP( [ DISTINCT ]
numeric
)
","
","
The population standard deviation."
The population standard deviation."
"Functions (Aggregate)","STDDEV_SAMP","
"Functions (Aggregate)","STDDEV_SAMP","
STDDEV_SAMP( [ DISTINCT ]
double
)
STDDEV_SAMP( [ DISTINCT ]
numeric
)
","
","
The sample standard deviation."
The sample standard deviation."
"Functions (Aggregate)","VAR_POP","
"Functions (Aggregate)","VAR_POP","
VAR_POP( [ DISTINCT ]
double
)
VAR_POP( [ DISTINCT ]
numeric
)
","
","
The population variance (square of the population standard deviation)."
The population variance (square of the population standard deviation)."
"Functions (Aggregate)","VAR_SAMP","
"Functions (Aggregate)","VAR_SAMP","
VAR_SAMP( [ DISTINCT ]
double
)
VAR_SAMP( [ DISTINCT ]
numeric
)
","
","
The sample variance (square of the sample standard deviation)."
The sample variance (square of the sample standard deviation)."
"Functions (Numeric)","ABS","
"Functions (Numeric)","ABS","
ABS ( {
int | long | decimal | double
} )
ABS ( {
numeric
} )
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","ACOS","
"Functions (Numeric)","ACOS","
ACOS(
double
)
ACOS(
numeric
)
","
","
Calculate the arc cosine."
Calculate the arc cosine."
"Functions (Numeric)","ASIN","
"Functions (Numeric)","ASIN","
ASIN(
double
)
ASIN(
numeric
)
","
","
Calculate the arc sine."
Calculate the arc sine."
"Functions (Numeric)","ATAN","
"Functions (Numeric)","ATAN","
ATAN(
double
)
ATAN(
numeric
)
","
","
Calculate the arc tangent."
Calculate the arc tangent."
"Functions (Numeric)","COS","
"Functions (Numeric)","COS","
COS(
double
)
COS(
numeric
)
","
","
Calculate the trigonometric cosine."
Calculate the trigonometric cosine."
"Functions (Numeric)","COSH","
"Functions (Numeric)","COSH","
COSH(
double
)
COSH(
numeric
)
","
","
Calculate the hyperbolic cosine."
Calculate the hyperbolic cosine."
"Functions (Numeric)","COT","
"Functions (Numeric)","COT","
COT(
double
)
COT(
numeric
)
","
","
Calculate the trigonometric cotangent (""1/TAN(ANGLE)"")."
Calculate the trigonometric cotangent (""1/TAN(ANGLE)"")."
"Functions (Numeric)","SIN","
"Functions (Numeric)","SIN","
SIN(
double
)
SIN(
numeric
)
","
","
Calculate the trigonometric sine."
Calculate the trigonometric sine."
"Functions (Numeric)","SINH","
"Functions (Numeric)","SINH","
SINH(
double
)
SINH(
numeric
)
","
","
Calculate the hyperbolic sine."
Calculate the hyperbolic sine."
"Functions (Numeric)","TAN","
"Functions (Numeric)","TAN","
TAN(
double
)
TAN(
numeric
)
","
","
Calculate the trigonometric tangent."
Calculate the trigonometric tangent."
"Functions (Numeric)","TANH","
"Functions (Numeric)","TANH","
TANH(
double
)
TANH(
numeric
)
","
","
Calculate the hyperbolic tangent."
Calculate the hyperbolic tangent."
"Functions (Numeric)","ATAN2","
"Functions (Numeric)","ATAN2","
ATAN2(
double, double
)
ATAN2(
numeric, numeric
)
","
","
Calculate the angle when converting the rectangular coordinates to polar coordinates."
Calculate the angle when converting the rectangular coordinates to polar coordinates."
"Functions (Numeric)","BITAND","
"Functions (Numeric)","BITAND","
...
@@ -899,35 +898,35 @@ MOD(long, long)
...
@@ -899,35 +898,35 @@ MOD(long, long)
","
","
The modulo operation."
The modulo operation."
"Functions (Numeric)","CEILING","
"Functions (Numeric)","CEILING","
{ CEILING | CEIL } (
double
)
{ CEILING | CEIL } (
numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","DEGREES","
"Functions (Numeric)","DEGREES","
DEGREES(
double
)
DEGREES(
numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","EXP","
"Functions (Numeric)","EXP","
EXP(
double
)
EXP(
numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","FLOOR","
"Functions (Numeric)","FLOOR","
FLOOR(
double
)
FLOOR(
numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","LOG","
"Functions (Numeric)","LOG","
{ LOG | LN } (
double
)
{ LOG | LN } (
numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","LOG10","
"Functions (Numeric)","LOG10","
LOG10(
double
)
LOG10(
numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","RADIANS","
"Functions (Numeric)","RADIANS","
RADIANS(
double
)
RADIANS(
numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","SQRT","
"Functions (Numeric)","SQRT","
SQRT(
double
)
SQRT(
numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","PI","
"Functions (Numeric)","PI","
...
@@ -935,7 +934,7 @@ PI()
...
@@ -935,7 +934,7 @@ PI()
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","POWER","
"Functions (Numeric)","POWER","
POWER(
double, double
)
POWER(
numeric, numeric
)
","
","
See also Java ""Math."
See also Java ""Math."
"Functions (Numeric)","RAND","
"Functions (Numeric)","RAND","
...
@@ -947,11 +946,11 @@ RANDOM_UUID()
...
@@ -947,11 +946,11 @@ RANDOM_UUID()
","
","
Returns a new UUID with 122 pseudo random bits."
Returns a new UUID with 122 pseudo random bits."
"Functions (Numeric)","ROUND","
"Functions (Numeric)","ROUND","
ROUND(
double
, digitsInt)
ROUND(
numeric
, digitsInt)
","
","
Rounds to a number of digits."
Rounds to a number of digits."
"Functions (Numeric)","ROUNDMAGIC","
"Functions (Numeric)","ROUNDMAGIC","
ROUNDMAGIC(
double
)
ROUNDMAGIC(
numeric
)
","
","
This function rounds numbers in a good way, but it is slow."
This function rounds numbers in a good way, but it is slow."
"Functions (Numeric)","SECURE_RAND","
"Functions (Numeric)","SECURE_RAND","
...
@@ -959,7 +958,7 @@ SECURE_RAND(int)
...
@@ -959,7 +958,7 @@ SECURE_RAND(int)
","
","
Generates a number of cryptographically secure random numbers."
Generates a number of cryptographically secure random numbers."
"Functions (Numeric)","SIGN","
"Functions (Numeric)","SIGN","
SIGN ( {
int | long | decimal | double
} )
SIGN ( {
numeric
} )
","
","
Returns -1 if the value is smaller 0, 0 if zero, and otherwise 1."
Returns -1 if the value is smaller 0, 0 if zero, and otherwise 1."
"Functions (Numeric)","ENCRYPT","
"Functions (Numeric)","ENCRYPT","
...
@@ -975,7 +974,7 @@ HASH(algorithmString, dataBytes, iterationInt)
...
@@ -975,7 +974,7 @@ HASH(algorithmString, dataBytes, iterationInt)
","
","
Calculate the hash value using an algorithm, and repeat this process for a number of iterations."
Calculate the hash value using an algorithm, and repeat this process for a number of iterations."
"Functions (Numeric)","TRUNCATE","
"Functions (Numeric)","TRUNCATE","
TRUNCATE(
double
, digitsInt)
TRUNCATE(
numeric
, digitsInt)
","
","
Truncates to a number of digits (to the next value closer to 0)."
Truncates to a number of digits (to the next value closer to 0)."
"Functions (Numeric)","COMPRESS","
"Functions (Numeric)","COMPRESS","
...
...
h2/src/test/org/h2/test/db/TestSelectCountNonNullColumn.java
浏览文件 @
9ded294c
...
@@ -13,7 +13,8 @@ import java.sql.Statement;
...
@@ -13,7 +13,8 @@ import java.sql.Statement;
import
org.h2.test.TestBase
;
import
org.h2.test.TestBase
;
/**
/**
* Test that count(column) is converted to count(*) if the column is not nullable.
* Test that count(column) is converted to count(*) if the column is not
* nullable.
*/
*/
public
class
TestSelectCountNonNullColumn
extends
TestBase
{
public
class
TestSelectCountNonNullColumn
extends
TestBase
{
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
9ded294c
...
@@ -683,4 +683,4 @@ sine cosine tangent cotangent trigonometric hyperbolic lte abe alphabetical kill
...
@@ -683,4 +683,4 @@ sine cosine tangent cotangent trigonometric hyperbolic lte abe alphabetical kill
diagnostics checkout somewhat icu delegation classifications karlsson applet
diagnostics checkout somewhat icu delegation classifications karlsson applet
litailang springsource eccn springframework spr growth teams gigabytes europe
litailang springsource eccn springframework spr growth teams gigabytes europe
mcleod decade experience travel willing scjp himself routinely tsi retrieving
mcleod decade experience travel willing scjp himself routinely tsi retrieving
multiplied
multiplied
ross judson closeable watcher enqueued referent refs watch tracked
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论