Skip to main content

Comparison operators

Comparison operators are used to test the equality of two input expressions. They are typically used in the WHERE clause of a query.

List of comparison operators

OperatorSyntaxDescription
=a = ba is equal to b.
!=a != ba is not equal to b.
<>a <> ba is not equal to b.
>a > ba is greater than b.
>=a >= ba is greater than or equal to b.
<a < ba is less than b.
<=a <= ba is less than or equal to b.