Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a8db85bd
提交
a8db85bd
authored
12月 19, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update ANY / SOME documentation
上级
96b77248
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
3 行删除
+22
-3
help.csv
h2/src/docsrc/help/help.csv
+19
-0
TestSubqueryPerformanceOnLazyExecutionMode.java
...test/unit/TestSubqueryPerformanceOnLazyExecutionMode.java
+2
-2
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
a8db85bd
...
...
@@ -2162,6 +2162,18 @@ compare { { { ALL | ANY | SOME } ( select ) } | operand }
","
The right hand side of a condition.
Quantified comparison predicate ALL returns TRUE if specified comparison operation between
left size of condition and each row from a subquery returns TRUE, including case when there are no rows.
ALL predicate returns FALSE if at least one such comparison returns FALSE.
Otherwise it returns NULL.
Quantified comparison predicates ANY and SOME return TRUE if specified comparison operation between
left size of condition and at least one value from a subquery returns TRUE.
ANY and SOME predicates return FALSE if all such comparisons return FALSE.
Otherwise it returns NULL.
Note that these predicates have priority over ANY and SOME aggregate functions with subquery on the right side.
Use parentheses around aggregate function.
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.
...
...
@@ -2179,6 +2191,8 @@ ILIKE does a case-insensitive compare.
When comparing with REGEXP, regular expression matching is used.
See Java ""Matcher.find"" for details.
","
VALUE > 10
A IS NOT DISTINCT FROM B
LIKE 'Jo%'
"
...
...
@@ -3469,8 +3483,13 @@ EVERY(ID>10)
Returns true if any expression is true.
If no rows are selected, the result is NULL.
Aggregates are only allowed in select statements.
Note that if ANY or SOME aggregate function is placed on the right side of comparison operation
and argument of this function is a subquery additional parentheses around aggregate function are required,
otherwise it will be parsed as quantified comparison predicate.
","
ANY(NAME LIKE 'W%')
A = (ANY((SELECT B FROM T)))
"
"Functions (Aggregate)","COUNT","
...
...
h2/src/test/org/h2/test/unit/TestSubqueryPerformanceOnLazyExecutionMode.java
浏览文件 @
a8db85bd
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
a8db85bd
...
...
@@ -804,4 +804,4 @@ qualification opportunity jumping exploited unacceptable vrs duplicated
queryparser tokenized freeze factorings recompilation unenclosed rfe dsync
econd irst bcef ordinality nord unnest
analyst occupation distributive josaph aor engineer sajeewa isuru randil kevin doctor businessman artist ashan
corrupts splitted disruption unintentional octets preconditions
corrupts splitted disruption unintentional octets preconditions
predicates subq
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论