CodesJava

Easy learning with example program codes

RAWTOHEX function in Oracle

RAWTOHEX is one of the vital Conversion functions of Oracle. It is used to convert a raw value to a hexadecimal value. The RAWTOHEX function is supported in the various versions of the Oracle/PLSQL, including, Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i and Oracle 8i.

Syntax:

RAWTOHEX ( raw )

Parameters:
raw: It is used to specify the raw value to be converted.

Example:

RAWTOHEX('AB')

Output:

'4142' 
OR
 'AB' 

Explanation:
The result will be ‘AB’ if run as a PLSQL function or the result will be ‘4142’ if run as a SQL function.

Please follow and like us:
error









Copyright © 2019 CodesJava DMCA.com Protection Status