NOT

Syntax

NOT value

Description

Inverts a Boolean value.

Argument types:

  • valueBoolean | Date | Datetime | Fractional number | Geopoint | Geopolygon | Integer | String

Return type: Boolean

Examples

NOT FALSE = TRUE
NOT TRUE = FALSE
NOT "" = TRUE
NOT "text" = FALSE
NOT 0 = TRUE
NOT 1 = FALSE
NOT #2019-01-01# = FALSE
NOT #2019-01-01 03:00:00# = FALSE

Data source support

ClickHouse 19.13, Microsoft SQL Server 2017 (14.0), MySQL 5.6, PostgreSQL 9.3.