ClickHouse/docs/zh/sql-reference/functions/logical-functions.md
2020-06-08 08:29:08 +03:00

21 lines
567 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
toc_priority: 37
toc_title: 逻辑函数
---
# 逻辑函数 {#luo-ji-han-shu}
逻辑函数可以接受任何数字类型的参数并返回UInt8类型的0或1。
当向函数传递零时函数将判定为«false»否则任何其他非零的值都将被判定为«true»。
## 和,`AND` 运算符 {#and-and-operator}
## 或,`OR` 运算符 {#or-or-operator}
## 非,`NOT` 运算符 {#not-not-operator}
## 异或,`XOR` 运算符 {#xor}
[来源文章](https://clickhouse.tech/docs/en/query_language/functions/logical_functions/) <!--hide-->