格式化与代码
SQL 格式化工具
免费的 SQL 格式化工具。将杂乱的单行 SQL 格式化为可读的、带缩进的查询。支持大多数方言的 SELECT, JOIN, WHERE, GROUP BY。
Runs in your browser
SQL formatter & validator
lines: 0chars: 0size: 0 B
SQL · UTF-8 · 2-space indent
编辑注
Understanding · SQL, set to two spaces.
本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。
常见问题
Quick answers.
›Which SQL dialects are supported?
Standard ANSI SQL works across PostgreSQL, MySQL, SQLite, MS SQL and most others. Vendor-specific extensions may format imperfectly.
›Does it modify the query?
Only whitespace and case — keywords are uppercased by convention but the logic is identical to your input.
›Is my SQL sent to a server?
No — formatting happens entirely in your browser. Useful when working with sensitive queries.
›Can it format very long queries?
Yes — anything your browser can hold in memory. Multi-thousand-line queries work fine.
›Is the formatter free?
Yes — fully free, no signup.
大家也在搜索
相关工具