HEXTORAW function in oracle to convert hexadecimal value into a raw value.
By Santhosh N
This explains how to convert a hexadecimal value into a raw value in oracle.
There is a conversion function in oracle by the name, HEXTORAW which converts a hexadecimal value into a raw value.
Syntax: HEXTORAW (char)
Here char is the hexadecimal value that needs to be converted to the raw value.
Ex1: SELECT HEXTORAW('123') FROM dual;
This returns a “0123” as result.
Ex2: SELECT HEXTORAW('12AB') FROM dual;
This returns “12AB'” as result.
Related FAQs
This explains how to convert a raw value to hexadecimal value in oracle.
This explains how to convert the both single-byte and multi-byte characters in oracle string to multi-byte characters.
This explains how to convert a string value to the timestamp with time zone value in oracle.
This explains how to convert a string value to the timestamp value in oracle.
This explains how to convert LONG or LONG RAW values to LOB values.
This explains how to convert a rowid to varchar2 type in oracle.
HEXTORAW function in oracle to convert hexadecimal value into a raw value. (3592 Views)