Updated on 2026-11-06 GMT+08:00

having_condition

HAVING condition, used to filter grouped results.

Syntax

Description

Syntax

Description

having_condition

Judgment condition of having.

and

Logical operator: AND

or

Logical operator: OR

not

Logical operator: NOT

(

Start of the subjudgment condition.

)

End of the subjudgment condition.

condition

Judgment condition.

const_set

Collection of constants, which are separated by using comma (,).

in

Keyword used to determine whether attributes are in the same collection.

attrs_value_set_expr

Collection of attribute values.

attr_expr

Attribute expression.

Equality and inequality

Equality and inequality operators. For details, see Relational Operators.

pattern_string

Pattern matching string, which supports wildcard matching. When filtering using the LIKE condition, the SQL wildcards % and _ are supported, where % indicates one or more characters, and _ indicates exactly one character.

like

Relational operator: used for wildcard matching.