Translate SQL between dialects
transpile_sqlConvert a SQL statement from one dialect to another — mysql, postgres, sqlite, tsql, oracle, snowflake, bigquery, redshift, spark, hive, presto, trino, duckdb, clickhouse, databricks, doris, starrocks and more. Deterministic parser (sqlglot), not an LLM: the same input always produces the same output, and syntax errors come back with the exact line and column. Use it when migrating queries between databases or debugging dialect-specific syntax.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement (or several, separated by semicolons). | |
| read | No | Source dialect, e.g. "mysql". Omit to auto-detect from generic SQL. | |
| write | Yes | Target dialect, e.g. "postgres", "bigquery", "doris". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||