description |
---|
Returns the hexadecimal encoding of an expression. |
- expression: The expression to encode.
Examples
{% code title="HEX example" %}
SELECT HEX('Spice')
-- EXPR$0
-- 4472656D696F
{% endcode %}
{% code title="HEX example" %}
SELECT HEX(2023)
-- EXPR$0
-- 7E7
{% endcode %}