This topic describes the conversion functions that are supported by PolarDB-X.
PolarDB-X supports the following conversion functions.
| Function | Description | Example |
|---|---|---|
| BINARY | Converts a string to a binary string. |
The following result is returned:
|
| CAST(x AS type) | Converts one data type to another. |
Execute the following statement to convert the STRING data type to the DATE data type.
The following result is returned:
|