Formatting

sql format

Pretty-print a SQL query: clause breaks, indentation and aligned commas. Lightweight and local.

formatted

Formatted SQL appears here.

A lightweight formatter: it breaks on major clauses, indents parentheses, and lines up commas. Strings and comments are preserved. Very exotic SQL may need a hand touch-up.