HEX: Converting to Hexadecimal

How to:

The HEX function converts its input value to hexadecimal.

Note: This function is available only for DB2, Ingres, and Informix.


Top of page

x
Syntax: How to Convert to Hexadecimal
HEX(character)

where:

character

Is the input value.

This function returns an alphanumeric value.



Example: Converting a Value to Hex

This example,

HEX('n')

returns 6E.


iWay Software