BOOLEAN
type
Applies to: Databricks SQL Databricks Runtime
Represents Boolean values.
SyntaxâBOOLEAN
Limitsâ
The type supports true
and false
values. A BOOLEAN
can be NULL
as well. See Logical operators for more information.
{ TRUE | FALSE }
Examplesâ
SQL
> SELECT true;
TRUE
> SELECT typeof(false);
BOOLEAN
> SELECT CAST(0 AS BOOLEAN);
FALSE
> SELECT CAST(-1 AS BOOLEAN);
TRUE
> SELECT CAST('true' AS BOOLEAN);
TRUE
> SELECT CAST(NULL AS BOOLEAN);
NULL
Relatedâ
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4