EQUAL_NULL

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conditional expression functions

Compares whether two expressions are equal. The function is NULL-safe, meaning it treats NULLs as known values for comparing equality. Note that this is different from the EQUAL comparison operator (=), which treats NULLs as unknown values. See also: IS [ NOT ] DISTINCT FROM

Syntax

[ NOT ] EQUAL_NULL( <expr1> , <expr2> )

Usage notes

Collation details

- The collation specifications of all input arguments must be compatible. - The comparisons follow the collation based on the input arguments’ collations and precedences.