TO_HEX
Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API Partial Data 360 Apps
Converts data to its equivalent hexadecimal representation.
<data>: The data to encode (int, bigint, or bytea).
Returns a text value containing the hexadecimal representation of the data.
- Data 360 Apps:
TO_HEXsupportsbyteaarguments. Integer arguments aren’t supported. - Output is lowercase hexadecimal without a ‘0x’ prefix.
Encode an integer to hexadecimal.
Returns '7fffffff'.