not Operatore

Si applica a:check marked yes Databricks SQL check marked yes Databricks Runtime

Restituisce la negazione logica dell'argomento. Questo operatore è un alias per ! Operatore (bang sign).

Sintassi

not expr

Argomenti

  • expr: espressione BOOLEAN.

Valori restituiti

Valore booleano.

Esempi

> SELECT not true;
 false
> SELECT not false;
 true
> SELECT  not NULL;
 NULL