- Categories:
Semi-structured and structured data functions (Type Predicates)
IS_BINARY¶
Returns TRUE if its VARIANT argument contains a binary string value.
- See also:
Syntax¶
Arguments¶
variant_exprAn expression that evaluates to a value of type VARIANT.
Returns¶
Returns a BOOLEAN value or NULL.
Returns TRUE if the VARIANT value contains a BINARY value. Otherwise, returns FALSE.
If the input is NULL, returns NULL without reporting an error.
Examples¶
Return all of the BINARY values in a VARIANT column.
Note
The output format for BINARY values is set using the BINARY_OUTPUT_FORMAT parameter.
The default setting is HEX.
Create and load a table with a BINARY value in a VARIANT column:
Show the BINARY values in the data by using the IS_BINARY function in a WHERE clause: