Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Databricks SQL
Databricks Runtime
Returns true
if expr1
does not equal expr2
, or false
otherwise. This function is a synonym for <>
(lt gt sign) operator.
expr1 != expr2
expr1
: An expression of any comparable type.expr2
: An expression that shares a least common type withexpr1
.
A BOOLEAN.
> SELECT 2 != 2;
false
> SELECT 3 != 2;
true
> SELECT 1 != '1';
false
> SELECT true != NULL;
NULL
> SELECT NULL != NULL;
NULL