TRY_HEX_DECODE_STRING

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

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

Syntax

TRY_HEX_DECODE_STRING(<input>)

Parameters

NameRequiredDescription
inputrequiredA hex-encoded string expression. Typically the input was created by a call to HEX_ENCODE.

Returns

The returned value is a string (VARCHAR).

Referenced by