MySQL Collation Convert
mysql_collation_convertConvert column values to a specified character set and collation, with optional WHERE filtering and source column inclusion.
Instructions
Convert column values to a different character set or collation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | No | Alias for column | |
| name | No | Alias for table | |
| limit | No | Maximum number of rows to return | |
| table | No | Table name (Note: Pass a table name, not a raw string) | |
| where | No | Additional WHERE clause for filtering | |
| column | No | Column name (Note: Pass a column name, not a raw string) | |
| filter | No | Alias for where | |
| charset | No | Target character set (e.g., utf8mb4) | |
| collation | No | Target collation | |
| tableName | No | Alias for table | |
| targetCharset | No | Alias for charset | |
| includeSourceColumn | No | Include source column in output (default: false). Set to true for full context. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, QUERY_ERROR) | |
| data | No | ||
| error | No | Error message if operation failed | |
| details | No | Additional error context | |
| metrics | No | Token estimation metrics | |
| success | Yes | Whether the operation succeeded | |
| category | No | Error category (validation, query, connection, internal) | |
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable |