TRY_HEX_DECODE_BINARY

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

A special version of HEX_DECODE_BINARY that returns a NULL value if an error occurs during decoding.

Syntax

TRY_HEX_DECODE_BINARY(<input>)

Parameters

NameRequiredDescription
inputrequiredA string expression containing only hexadecimal digits. Typically, this input string is generated by calling the function HEX_ENCODE.

Returns

A BINARY value that can, for example, be inserted into a column of type BINARY.

Referenced by