三、clickhouse逻辑函数

-->>>>>> 逻辑操作符(返回0表示false 或 1表示true)

SELECT 12==12 or 12!=10;
SELECT 12==12 and 12!=10;
SELECT not 12, not 0;
SELECT or(equals(12, 12), notEquals(12, 10)); --函数表示法:或
SELECT and(equals(12, 12), notEquals(12, 10));--函数表示法:且
SELECT not(12), not(0);

 

posted @ 2022-01-18 11:53  渐逝的星光  阅读(107)  评论(0)    收藏  举报