此内容没有您所选择的语言版本。
12.4.14. About Relational Comparisons
Comparisons involve one of the comparison operators - =, >, >=, <, <=, <>. HQL also defines != as a comparison operator synonymous with <>. The operands should be of the same type.
Example 12.17. Relational Comparison Examples
Comparisons can also involve subquery qualifiers -
ALL
, ANY
, SOME
. SOME
and ANY
are synonymous.
The
ALL
qualifier resolves to true if the comparison is true for all of the values in the result of the subquery. It resolves to false if the subquery result is empty.
Example 12.18. ALL Subquery Comparison Qualifier Example
The
ANY
/SOME
qualifier resolves to true if the comparison is true for some of (at least one of) the values in the result of the subquery. It resolves to false if the subquery result is empty.