Files
doris/docs/en/sql-reference/sql-functions/bitwise-functions/bitxor.md
2022-01-24 21:08:41 +08:00

1.2 KiB

title, language
title language
bitxor en

bitxor

description

Syntax

BITXOR(Integer-type lhs, Integer-type rhs)

Returns the result of the XOR operation of two integers.

Integer range: TINYINT、SMALLINT、INT、BIGINT、LARGEINT

example

mysql> select bitxor(3,5) ans;
+------+
| ans  |
+------+
|    7 |
+------+

mysql> select bitxor(1,7) ans;
+------+
| ans  |
+------+
|    6 |
+------+

keyword

BITXOR