Apache Presto - bitwise_and(x,y)



查询

presto:default> select bitwise_and(2,3) as bit_and; 

结果

 bit_and 
--------- 
    2 

上述操作在两个位 2(010) 和 3(011) 之间执行。因此,结果为 2。

apache_presto_sql_functions.htm
广告
© . All rights reserved.