NOT_EQUALS
All functions > COMPARISON > NOT_EQUALS
Returns TRUE if the first value does not equal the second value
Signatures
Returns: TRUE if expr1 != expr2, FALSE otherwise, NULL if either value is NULL
NOT_EQUALS(expr1: T, expr2: T, [digits: BIGINT]) → BOOLEAN sql
| Parameter | Type | Required | Description |
|---|---|---|---|
expr1 | T | Yes | First value to compare |
expr2 | T | Yes | Second value to compare |
digits | BIGINT | No | Optional decimal precision for numeric comparisons |
Notes
- Both values must be of the same or compatible types
- NULL comparisons always return NULL (three-valued logic)
- For strings, performs case-sensitive comparison
- For numeric types, supports optional decimal precision
- Opposite of EQUALS function
See also
On this page