Skip to main content

Categories: Datatype, Variant Type

IS_VARBINARY Preview

Returns TRUE if the input expression is a VARIANT<VARBINARY>.

Syntax

IS_VARBINARY(value VARIANT) → BOOLEAN

  • value: The VARIANT value to check.

Examples

IS_VARBINARY example
SELECT IS_VARBINARY(TO_VARIANT(CAST('hello' AS VARBINARY)))
-- TRUE
IS_VARBINARY example
SELECT IS_VARBINARY(TO_VARIANT('hello'))
-- FALSE

Usage Notes

NULL handling for VARIANT inputs

If the input is SQL NULL (e.g., from a missing path), IS_VARBINARY returns NULL.

InputResult
VARIANT varbinaryTRUE
VARIANT other typeFALSE
VARIANT nullFALSE
SQL NULLNULL