इसके माध्यम से साझा किया गया


! (bang sign) operator

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime

Returns the logical NOT of a Boolean expression. This operator is a synonym for not operator.

Syntax

!expr

Arguments

  • expr: A BOOLEAN expression.

Returns

A BOOLEAN.

Examples

> SELECT !true;
 false
> SELECT !false;
 true
> SELECT !NULL;
 NULL