工具星球ToolPlanet

SQL 格式化SQL Formatter

多方言 SQL 美化、缩进与关键字大小写,数据在浏览器本地处理。Format SQL dialects with indentation and keyword case controls

仅整理排版,不执行 SQL,也不连接数据库。最多 20 万字符,10 秒超时保护;存储过程和方言扩展可能不支持。

SQL 格式化使用指南SQL Formatter: guide

多方言 SQL 美化、缩进与关键字大小写。不会。本工具仅在浏览器工作线程中整理 SQL 排版。支持 MySQL、PostgreSQL、SQLite、Transact-SQL、BigQuery 与标准 SQL,最多 20 万字符,10 秒超时保护。存储过程和部分方言扩展可能不支持。Format SQL dialects with indentation and keyword case controls

  1. 粘贴 SQL,选择对应数据库方言。Paste SQL and choose the matching dialect.
  2. 设置缩进和关键字大小写,格式化后复制或下载。Set indentation and keyword case, format, then copy or download.

会执行 SQL 或连接数据库吗?Does this execute SQL or connect to a database?

不会。本工具仅在浏览器工作线程中整理 SQL 排版。支持 MySQL、PostgreSQL、SQLite、Transact-SQL、BigQuery 与标准 SQL,最多 20 万字符,10 秒超时保护。存储过程和部分方言扩展可能不支持。No. Formatting runs in a browser worker, with a 200,000-character limit and a 10-second timeout. MySQL, PostgreSQL, SQLite, Transact-SQL, BigQuery and standard SQL are supported; stored procedures and some extensions may not be.

免费使用,无需注册。工具输入在浏览器本地处理;网站访问统计不包含工具输入内容。Free to use, no registration. Tool input is processed locally in your browser and is not included in website analytics.