The CAST_TO_RAW function converts a VARCHAR2 value represented by a specified number of bytes to a RAW value represented by the same number of bytes.
The data itself is not modified, but its data type is changed to RAW.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this function.
Syntax
UTL_RAW.CAST_TO_RAW (
c IN VARCHAR2)
RETURN RAW;
Parameters
| Parameter | Description |
|---|---|
| c | The VARCHAR2 data to be converted to RAW. |
Return value
| Return value | Description |
|---|---|
| RAW | A RAW value that contains the same data as the input VARCHAR2 value and has the same byte length. It does not have a leading length field. |
| NULL | The input c is NULL. |
