Categories: Conversion, String, Binary
HEX
Returns the hexadecimal encoding of an expression.
Syntax
HEX(expression any primitive) → varchar
- expression: The expression to encode.
Examples
HEX exampleSELECT HEX('Dremio')
-- 4472656D696F
SELECT HEX(2023)
-- 7E7