SQL格式化工具
格式化并美化SQL查询:在关键字处换行,对列清单进行缩进。
如何使用本工具
- 1
Paste or type your SQL query into the input box.
- 2
The formatted version appears instantly in the read-only panel below — there is no separate Format button.
- 3
Select the output text and copy it manually into your editor or query tool.
什么是SQL格式化工具?
阅读压缩成一行的SQL令人痛苦。本格式化工具会在主要关键字(SELECT、FROM、WHERE、JOIN等)处换行,并对列清单进行缩进,以便于阅读。其输出在功能上与输入完全相同:格式化不会改变语义。
常见使用场景
Untangling a one-line SQL query copied out of an application log or ORM debug output so you can read it.
Quickly making a SELECT with a long column list scannable before reviewing it in a pull request.
Normalizing keyword casing to uppercase across an ad-hoc query you wrote in lowercase.
Pasting a minified query from a config file or migration into a readable shape for documentation.
Teaching or explaining a query's clause structure by breaking SELECT, FROM, WHERE, and JOIN onto their own lines.
Doing a fast cleanup before a query is too short to justify opening a full IDE formatter.
常见问题
这会重写我的查询吗?▼
相关工具
JWT解码器
即时解码JSON Web Token(JWT)。完全在你的浏览器中运行:令牌绝不会离开你的设备,可安全用于生产环境的密钥。
JSON格式化与校验工具
在线格式化、校验和压缩JSON。完全在你的浏览器中运行:你的数据永远不会离开你的设备。
XML格式化工具
格式化并美化XML文档。适用于SOAP、站点地图、RSS订阅源和配置文件。
Base64编码与解码工具
将字符串编码为Base64,或将Base64解码为文本。尊重你的隐私:全部在你的浏览器中运行。
URL编码与解码工具
将文本转换为URL安全的编码(百分号编码),或进行反向转换。适用于查询字符串、重定向和OAuth流程。
HTML实体编码与解码工具
将特殊字符转换为HTML实体(&、<等),或进行反向转换。适用于将文本安全地嵌入HTML。