หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
Databricks SQL
Databricks Runtime
Returns true if expr1 does not equal expr2, or false otherwise. This function is a synonym for != (bangeq sign) operator.
Syntax
expr1 <> expr2
Arguments
expr1: An expression of any comparable type.expr2: An expression that shares a least common type withexpr1.
Returns
A BOOLEAN.
Examples
> SELECT 2 <> 2;
false
> SELECT 3 <> 2;
true
> SELECT 1 <> '1';
false
> SELECT true <> NULL;
NULL
> SELECT NULL <> NULL;
NULL