ClickHouse/doc/reference/en/functions/logical_functions.rst

20 lines
344 B
ReStructuredText
Raw Normal View History

2017-04-26 19:16:38 +00:00
Logical functions
2017-04-03 19:49:50 +00:00
------------------
2017-04-26 19:16:38 +00:00
Logical functions accept any numeric types, but return a UInt8 number equal to 0 or 1.
2017-04-03 19:49:50 +00:00
2017-04-26 19:16:38 +00:00
Zero as an argument is considered "false," while any non-zero value is considered "true"..
2017-04-03 19:49:50 +00:00
2017-04-26 19:16:38 +00:00
and, AND operator
2017-04-03 19:49:50 +00:00
~~~~~~~~~~~~~~~~~
2017-04-26 19:16:38 +00:00
or, OR operator
2017-04-03 19:49:50 +00:00
~~~~~~~~~~~~~~~
2017-04-26 19:16:38 +00:00
not, NOT operator
~~~~~~~~~~~~~~~
2017-04-03 19:49:50 +00:00
xor
2017-04-26 19:16:38 +00:00
~~~~~~~~~~~~~~~