mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-09 18:10:48 +00:00
16 lines
483 B
Markdown
16 lines
483 B
Markdown
# 逻辑函数 {#luo-ji-han-shu}
|
||
|
||
逻辑函数可以接受任何数字类型的参数,并返回UInt8类型的0或1。
|
||
|
||
当向函数传递零时,函数将判定为«false»,否则,任何其他非零的值都将被判定为«true»。
|
||
|
||
## and, AND operator {#and-and-operator}
|
||
|
||
## or, OR operator {#or-or-operator}
|
||
|
||
## not, NOT operator {#not-not-operator}
|
||
|
||
## xor {#xor}
|
||
|
||
[来源文章](https://clickhouse.tech/docs/en/query_language/functions/logical_functions/) <!--hide-->
|