SQL 格式化程序

使用方言支援格式化和縮小 SQL - MySQL、PostgreSQL、SQLite 等。

免費線上 SQL 格式化程式和壓縮器

凌亂的一行 SQL 很難閲讀、審查和調試。 Dokall 的 SQL 格式化程式使用一致的縮排和大寫關鍵字來漂亮列印查詢,並提供對 MySQL、PostgreSQL、SQLite 等的方言支援。

使用 Minify 去除註釋並折疊空白以進行緊湊查詢。 Dual Ace 編輯器具有 SQL 語法突出顯示功能 - 一切都在您的瀏覽器中運行。

Frequently Asked Questions

Which SQL dialects are supported?
Dokall supports standard SQL plus dialect-specific formatting for MySQL, PostgreSQL, SQL Server (T-SQL), SQLite, BigQuery, and others. Select your dialect for correct keyword casing and syntax handling.
Can I minify SQL queries?
Yes. Switch to minify mode to compress a formatted query into a single line. Useful for embedding SQL in application code or reducing log output size.
Does formatting affect query performance?
No. SQL formatters only change whitespace. The database query planner sees the same logical query. Formatting is for human readability during development and code review.
Can I format stored procedures?
Yes. Paste multi-statement SQL including CREATE PROCEDURE, triggers, and CTEs. Complex procedural SQL may need dialect-specific settings for best results.
Is my SQL sent to a server?
No. Formatting runs in your browser. Queries containing table names, credentials, or business logic never leave your device.