not operator

Berlaku untuk:check marked yes Databricks SQL check marked yes Databricks Runtime

Mengembalikan negasi logis dari argumen. Operator ini adalah alias untuk operator ! (tanda bang).

Sintaks

not expr

Argumen

  • expr: Ekspresi BOOLEAN.

Kembali

BOOLEAN.

Contoh

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