关于 SQL Formatter
Format and beautify SQL queries with customizable indentation and keyword casing — paste messy SQL, get clean output, 全部在浏览器中完成.
如何使用 SQL Formatter
- 1将你的 SQL 查询粘贴到输入区域。
- 2切换'Uppercase keywords' to capitalize SQL keywords (SELECT, FROM, WHERE, etc.)。
- 3设置indent size for nested clauses。
- 4点击 '格式' to beautify the SQL.
- 5复制formatted output。
提示
- 关键字大写是最常见的 SQL 约定——它能让查询更易于浏览。
- 格式 complex queries before code review to make them readable and catch logic errors.
- 对紧凑查询使用 2 个空格缩进,对深层嵌套子查询使用 4 个空格缩进。
OneKitTools 团队更新于 2.25.0