Relative operators

Relative operators are allowed in queries.

This table shows the relative operators available for constructing a query clause.

Table 1. Relative operators available for constructing a query clause
Operator Description
= The value of the attribute must be equal to the value of the constant.
!= The value of the attribute must not be equal to the value of the constant; however, the attribute must exist.
< The value of the attribute must be less than the value of the constant.
<= The value of the attribute must be less than or equal to the value of the constant.
> The value of the attribute must be greater than the value of the constant.
>= The value of the attribute must be greater than or equal to the value of the constant.
match

The value of the attribute must match a value of the constant, where the constant can include the wildcard characters "*" and "?". The wildcard "*" matches any number of missing characters and the wildcard "?" matches a single missing character. The match operator is case-sensitive.

You can use the wildcard match only on the first 63 characters of an attribute.

!match The value of the attribute cannot match any of the possible values of the constant.
smatch The value of the attribute must match a string. The smatch operator is case-sensitive.

Feedback