webCOMAND

HEX()

Returns a string representation of the hexadecimal value of a string.

Prototype

string HEX(int str)

Parameter

  • str - String to convert to its hexadecimal value.

Return

The string representation of the hexadecimal value of a string.

Example

SELECT HEX(Name) AS HexName FROM Contact

Related

ORD(), UNHEX()