MySQL
Paste a MySQL query below.
Paste a MySQL query and get it back with uppercase keywords, one clause per line and indented subqueries. Handles MySQL specifics like AUTO_INCREMENT, backtick identifiers and ON DUPLICATE KEY UPDATE.
Paste a MySQL query below.
The tool protects strings, backtick identifiers and comments, then uppercases MySQL keywords including AUTO_INCREMENT, IFNULL and GROUP_CONCAT. SELECT, FROM, WHERE and JOIN clauses each get their own line, AND and OR conditions are stacked, and subqueries are indented by parenthesis depth.
Formatted queries are faster to review in pull requests and easier to debug when a WHERE clause misbehaves. Consistent keyword casing also helps teammates spot a missing JOIN condition or a duplicated column at a glance.