a11y.skipToMainContent
1

SQL 格式化处理器( M)

粘贴任何 SQL 查询, 并将其格式化为适当的缩进、 关键字外壳和条款分解 。 支持10个方言,包括PostgreSQL,MySQL,SQLite,BigQuery,Snowflake,RedShift,和T-SQL. 包括一个稀释模式.

Was this tool helpful?
Send output to:
Advertisement

How to use SQL Formatter

  1. 粘贴您的 SQL 查询 .
  2. 选取方言,关键词箱,并收缩.
  3. 单击格式或缩小.

{姓名}是什么来着?

sql- formatter 库驱动。 格式设置包括关键字大小写(UPPER / 下/ 保存),标签宽度,和方言. 微调模式在保留字符串文字时会条列注释并折叠白空格。

Advertisement

FAQ

它是否执行 SQL ?
不,纯粹是事端。 您的查询从不针对数据库运行 .
我的SQL上传了吗?
没有 格式化在浏览器中运行 .

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement