หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
Databricks SQL
Databricks Runtime
Returns an array of the elements in array1 but not in array2.
Syntax
array_except(array1, array2)
Arguments
array1: An ARRAY of any type with comparable elements.array2: An ARRAY of elements sharing a least common type with the elements ofarray1.
Returns
An ARRAY of matching type to array1 with no duplicates.
Examples
> SELECT array_except(array(1, 2, 2, 3), array(1, 1, 3, 5));
[2]