The REVERSE function reverses the sequence of bytes in RAW r from end to end.
For example, it reverses ‘nba’ to ‘abn’. The length of the result is the same as that of the input RAW.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.
Syntax
UTL_RAW.REVERSE (
r IN RAW)
RETURN RAW;
Parameters
| Parameter | Description |
|---|---|
| r | The RAW to be reversed. |
Return values
| Return value | Description |
|---|---|
| RAW | This value contains the reversed value of r. |
Exceptions
| Exception | Description |
|---|---|
| VALUE_ERROR | This error is returned when the value of r is NULL or 0 in length. |