TRY_CAST

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conversion functions

A special version of CAST , :: that is available for a subset of data type conversions. It performs the same operation (i.e. converts a value of one data type into another data type), but returns a NULL value instead of raising an error when the conversion can not be performed. For more information, see Error-handling conversion functions.

Syntax

TRY_CAST( <source_string_expr> AS <target_data_type> )

Usage notes

Referenced by