首页
Tom Utilities

SQL 格式化

开发者实用工具

将 SQL 语句格式化为易读、缩进一致的查询。

输入

结果

使用方法

Formatting SQL

Paste a statement and press Format. Keywords are uppercased and clauses are broken onto new lines.

  1. Paste SQL into the input editor.
  2. Press Format.
  3. Copy the formatted query.

常见问题

Which dialects are supported?

Standard SQL, MySQL, PostgreSQL, SQL Server, SQLite and more are available.

Does it change query meaning?

No, formatting only changes whitespace and keyword case.