description |
---|
Converts the hexadecimal number into the bytes represented by a number. |
- expression: A string containing only hexadecimal digits.
Examples
{% code title="UNHEX example" %}
SELECT UNHEX('4472656D696F')
-- RHJlbWlv
{% endcode %}
The returned value is a binary string. If the expression contains non-hex characters, the result is NULL
.