Apache Presto - bitwise_xor(x,y)

查询

presto:default> select bitwise_xor(2,3) as bit_xor; 
 bit_xor 
--------- 
   1 

这里,第2位和第3位的异或运算为1。

apache_presto_sql_functions.html