HomeMogDBMogDB StackUqbar
v1.1

Documentation:v1.1

Supported Versions:

Other Versions:

Comparison Operators

Comparison operators are available for most data types and return Boolean values.

All comparison operators are binary operators. Only data types that are the same or can be implicitly converted can be compared using comparison operators.

[Table 1](#comparison operations) describes comparison operators provided by MogDB.

Table 1 Comparison operations

Operator Description
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
= Equality
<> or != Inequality

Comparison operators are available for all relevant data types. All comparison operators are binary operators that returned values of Boolean type. The calculation priority of the inequality sign is higher than that of the equality sign. If the entered data is different and cannot be implicitly converted, the comparison fails. For example, an expression such as 1<2<3 is invalid because the less than sign (<) cannot be used to compare Boolean values and 3.

Copyright © 2011-2024 www.enmotech.com All rights reserved.