HEX
Returns the hexadecimal encoding of an expression.
Syntax
HEX(expression any primitive) → varchar
expression: The expression to encode.
Examples
SELECT HEX('Spice')
-- EXPR$0
-- 4472656D696F
SELECT HEX(2023)
-- EXPR$0
-- 7E7
Last updated
Was this helpful?