SYSTEM$TYPEOF
functionsupportedCore SQL functionsReturns a string representing the SQL data type associated with an expression.
Syntax
SYSTEM$TYPEOF( <expr> )
Parameters
| Name | Required | Description |
|---|---|---|
expr | required | The argument can be a column name or a general expression. |
Returns
Returns a VARCHAR value that contains the data type of the input expression, for example, BOOLEAN, NUMBER, ARRAY, OBJECT, etc.
Usage notes
- If TYPEOF is executed without the SYSTEM$ prefix (i.e. as a regular function rather than a system function), it returns different results (see TYPEOF).