The BIT_XOR function performs a bitwise "exclusive OR" (XOR) operation on the values of RAW r1 and RAW r2, and returns the result as a RAW.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this function.
Syntax
UTL_RAW.BIT_XOR (
r1 IN RAW,
r2 IN RAW)
RETURN RAW;
Parameters
| Parameter | Description |
|---|---|
| r1 | The RAW value to be XORed with r2. |
| r2 | The RAW value to be XORed with r1. |
Return value
| Return value | Description |
|---|---|
| RAW | The result of XORing r1 and r2. |
Considerations
If r1 and r2 have different lengths, the XOR operation stops at the last byte of the shorter RAW and appends the remaining part of the longer RAW to the partial result. The result length is equal to the length of the longer input RAW.
