- Categories:
Semi-structured and structured data functions (Type Predicates)
IS_ TIME¶
Verifies whether a VARIANT argument contains a TIME value.
- See also:
IS_*<object_type>* , IS_DATE , IS_DATE_VALUE , IS_TIMESTAMP_*
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 TIME value. Otherwise, returns FALSE.
- If the input is NULL, returns NULL without reporting an error.
Examples¶
Return all of the TIME values in a VARIANT column.
Note
The output format for TIME values is set using the TIME_OUTPUT_FORMAT parameter. The default setting is HH24:MI:SS.
Create and load a table with various date and TIME values in a VARIANT column:
Use the TYPEOF function in a query to show the data types of the values stored in the VARIANT column v:
Show the TIME values in the data by using the IS_TIME function in a WHERE clause. Only the TIME value is returned in the output. The DATE and TIMESTAMP values aren’t returned.