Skip to main content

Comparison Operators

Standard equality and inequality operators:

BETWEEN / NOT BETWEEN

BETWEEN a AND b is inclusive on both bounds.

IN / NOT IN with Value List

IN / NOT IN with Subquery

IN / NOT IN with Row Value Constructor

EXISTS / NOT EXISTS (Correlated Subquery)

LIKE / NOT LIKE

Two wildcard characters are supported:
Use ESCAPE when you need literal %, _, or the escape character itself inside the pattern. Escaping is explicit only: there is no implicit backslash escape mode.

IS NULL / IS NOT NULL

Not Supported

  • IS DISTINCT FROM / IS NOT DISTINCT FROM
  • ANY / ALL quantifiers (e.g., WHERE x > ANY (SELECT ...))