Skip to main content
Decodes a hex encoded string to a binary. This function is supported from v3.0.

Syntax

Parameters

str: the string to convert. The supported data type is VARCHAR. An empty binary is returned if any of the following situations occur:
  • The length of the string is 0 or the number of characters in the string is an odd number.
  • The string contains characters other than [0-9], [a-z], and [A-Z].

Return value

Returns a value of the VARBINARY type.

Examples

Text

Keywords

HEX_DECODE_BINARY