Share via


not Operador

Aplica-se a:check marked yes Databricks SQL check marked yes Databricks Runtime

Retorna a negação lógica do argumento. Este operador é um alias para ! (sinal de explosão) operador.

Sintaxe

not expr

Argumentos

  • expr: Uma expressão booleana.

Devolve

UM BOOLEAN.

Exemplos

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