The BIT_OR function performs a bitwise logical "OR" 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_OR (
r1 IN RAW,
r2 IN RAW)
RETURN RAW;
Parameters
| Parameter | Description |
|---|---|
| r1 | The RAW value to be used in the "OR" operation with r2. |
| r2 | The RAW value to be used in the "OR" operation with r1. |
Return value
| Return value | Description |
|---|---|
| RAW | The result of the "OR" operation between r1 and r2. |
Considerations
If the lengths of r1 and r2 are different, the "OR" operation stops at the last byte of the shorter RAW value. The remaining bytes of the longer RAW value are appended to the result. The length of the result is equal to the length of the longer RAW value.
