Comparison Operators
Comparison operators are available for all 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 describes comparison operators provided by GaussDB(DWS).
| Operators | 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. Expressions like 1 < 2 < 3 are invalid. (Because there is no comparison operator to compare a Boolean value with 3.)
Last Article: Logical Operators
Next Article: Character Processing Functions and Operators
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.