TO_VARIANT
functionsupportedCore SQL functionsConverts any value to a VARIANT value or NULL (if input is NULL).
Syntax
TO_VARIANT( <expr> )
Parameters
| Name | Required | Description |
|---|---|---|
expr | required | An expression of any data type. |
Usage notes
- The TO_VARIANT function cannot be used directly in an INSERT statement. Instead, use INSERT INTO ... SELECT.... The Examples section shows how to do this.