MySQL SQL formatting
MySQL is the most widely deployed open-source relational database. Its SQL dialect includes MySQL-specific syntax like LIMIT ... OFFSET, INSERT IGNORE, ON DUPLICATE KEY UPDATE, SHOW TABLES, and backtick-quoted identifiers.
This formatter uses the MySQL dialect to correctly parse and format these constructs. Standard SQL formatters may misinterpret backtick identifiers or MySQL-specific functions — using the right dialect produces accurate output.
How to format MySQL queries
- Paste your MySQL SQL query into the text area above.
- The formatter is pre-set to MySQL dialect. Adjust keyword casing if needed.
- Copy the formatted output with the Copy button or
Ctrl+K.