HEX_ENCODE
functionsupportedCore SQL functionsEncodes the input using hexadecimal (also ‘hex’ or ‘base16’) encoding. The result is comprised of 16 different symbols: The numbers ’0’ to ’9’ as well as the letters ‘A’ to ‘F’ (or ‘a’ to ‘f’, see below).
Syntax
supportedpartialnot supportednot scored
HEX_ENCODE(<input> [, <case>])
Parameters
| Name | Required | Description |
|---|---|---|
input | required | A binary or string expression to be encoded. |
case | optional | This optional boolean argument controls the case of the letters (‘A’, ‘B’, ‘C’, ‘D’, ‘E’ and ‘F’) used in the encoding. The default value is 1 and indicates that uppercase letters are used. The value 0 indicates that lowercase letters are used. All other values are illegal and result in an error. |
Returns
This returns a string that contains only hexadecimal digits.