All Products
Search
Document Center

RAWTOHEX

Last Updated: Jun 18, 2021

The RAWTOHEX function converts a binary number to a corresponding hexadecimal string.

Syntax

RAWTOHEX (raw)

Parameters

Parameter

Description

raw

The binary string.

Return type

The hexadecimal string

Examples

Execute the following statement:

SELECT RAWTOHEX('AB')  FROM DUAL;

The following query result is returned:

+----------------+
| RAWTOHEX('AB') |
+----------------+
| 4142           |
+----------------+