English

SQL 格式化工具

在线格式化和美化SQL查询语句,支持多种数据库方言。

Advertisement
Input SQL
Formatted SQL (highlighted)
Advertisement

About SQL Formatting

Well-formatted SQL is easier to read, debug, and maintain. This formatter capitalizes SQL keywords (SELECT, FROM, WHERE, etc.) and adds consistent indentation to nested clauses, subqueries, and JOINs.

Supported dialects include MySQL, PostgreSQL, and SQLite — the formatter recognizes dialect-specific keywords for each.