メインコンテンツまでスキップ
バージョン: Latest-4.1

bitxor

2 つの数値式のビットごとの XOR を返します。

Syntax​

BITXOR(x,y);

Parameters​

  • x: この式は、TINYINT、SMALLINT、INT、BIGINT、LARGEINT のいずれかのデータ型に評価される必要があります。

  • y: この式は、TINYINT、SMALLINT、INT、BIGINT、LARGEINT のいずれかのデータ型に評価される必要があります。

x と y はデータ型が一致している必要があります。

Return value​

戻り値は x と同じ型です。いずれかの値が NULL の場合、結果は NULL です。

Examples​

mysql> select bitxor(3,0);
+--------------+
| bitxor(3, 0) |
+--------------+
| 3 |
+--------------+
1 row in set (0.00 sec)
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.