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')
-- EXPR$0
-- 4472656D696F
SELECT HEX(2023)
-- EXPR$0
-- 7E7
Was this page helpful?
Glad to hear it! Thank you for your feedback.
Sorry to hear that. Thank you for your feedback.