SQL Converter · MySQL → BigQuery
Convert MySQL SQL to BigQuery
MySQL to BigQuery swaps `backtick` identifiers for `proj.dataset.table` refs, GROUP_CONCAT for STRING_AGG and NOW() for CURRENT_TIMESTAMP(). A mechanical formatter only re-indents — it won’t rewrite dialect-specific syntax. The AI converter in the app translates the query and the table below shows exactly what changes.
MySQL — source
BigQuery — converted
What changes from MySQL to BigQuery
| MySQL | BigQuery | Why |
|---|---|---|
| `orders` | `proj.dataset.orders` | Backtick identifiers become fully-qualified table references. |
| GROUP_CONCAT(x) | STRING_AGG(CAST(x AS STRING)) | BigQuery uses STRING_AGG and needs a STRING argument. |
| NOW() - INTERVAL 1 DAY | TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 DAY) | Timestamp math differs. |