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