Purpose
This function converts a binary string to its corresponding hexadecimal representation.
Syntax
RAWTOHEX (raw)
Parameters
Parameter |
Description |
|---|---|
| raw | The binary string. |
Return type
A hexadecimal string.
Examples
Convert the binary string AB to its corresponding hexadecimal string.
obclient> SELECT RAWTOHEX('AB') FROM DUAL;
+----------------+
| RAWTOHEX('AB') |
+----------------+
| 4142 |
+----------------+
1 row in set
