RevealTheme logo

SQL-Formatierer

Formatieren und verschönern Sie SQL-Abfragen: Zeilenumbrüche bei Schlüsselwörtern, eingerückte Spaltenlisten.

So verwenden Sie dieses Tool

  1. 1

    Paste or type your SQL query into the input box.

  2. 2

    The formatted version appears instantly in the read-only panel below — there is no separate Format button.

  3. 3

    Select the output text and copy it manually into your editor or query tool.

Was ist der SQL-Formatierer?

Minifiziertes oder einzeiliges SQL zu lesen, ist mühsam. Dieser Formatierer setzt Zeilenumbrüche bei den wichtigsten Schlüsselwörtern (SELECT, FROM, WHERE, JOIN usw.) und rückt die Spaltenlisten ein, um das Lesen zu erleichtern. Die Ausgabe ist funktional identisch mit der Eingabe: Die Formatierung ändert die Semantik nicht.

Häufige Anwendungsfälle

  • 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.

Häufig gestellte Fragen

Schreibt das meine Abfrage um?
Nein: Die Formatierung ist rein optisch. Lassen Sie die Ausgabe durch einen Linter laufen, wenn Sie Korrektheitsprüfungen wünschen.

Verwandte Tools