The CAST_TO_RAW function converts a VARCHAR2 value with a specific number of bytes into a RAW value with the same number of bytes.
The data itself is not modified, but its data type is converted into the RAW data type.
Syntax
UTL_RAW.CAST_TO_RAW (
c IN VARCHAR2)
RETURN RAW;
Parameters
Parameter |
Description |
|---|---|
| c | The VARCHAR2 data to be converted into RAW data. |
Return values
Return value |
Description |
|---|---|
| RAW | This value contains the same data and has the same byte length as the input VARCHAR2 data, and does not have a leading length field. |
| NULL | This value is returned if the input value of c is NULL. |
