Skip to content
OneKitTools logoOneKitTools
返回开发者

SQL Formatter

格式 and beautify SQL queries

关于 SQL Formatter

Format and beautify SQL queries with customizable indentation and keyword casing — paste messy SQL, get clean output, 全部在浏览器中完成.

如何使用 SQL Formatter

  1. 1将你的 SQL 查询粘贴到输入区域。
  2. 2切换'Uppercase keywords' to capitalize SQL keywords (SELECT, FROM, WHERE, etc.)。
  3. 3设置indent size for nested clauses。
  4. 4点击 '格式' to beautify the SQL.
  5. 5复制formatted output。

提示

  • 关键字大写是最常见的 SQL 约定——它能让查询更易于浏览。
  • 格式 complex queries before code review to make them readable and catch logic errors.
  • 对紧凑查询使用 2 个空格缩进,对深层嵌套子查询使用 4 个空格缩进。

相关工具

OneKitTools 团队更新于 2.25.0