RevealTheme logo

Formateur SQL

Formatez et embellissez les requêtes SQL : sauts de ligne aux mots-clés, listes de colonnes indentées.

Comment utiliser cet outil

  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.

Qu'est-ce que le formateur SQL ?

Lire du SQL minifié ou tout sur une seule ligne est pénible. Ce formateur insère des sauts de ligne aux principaux mots-clés (SELECT, FROM, WHERE, JOIN, etc.) et indente les listes de colonnes pour en faciliter la lecture. La sortie est fonctionnellement identique à l'entrée : le formatage ne change pas la sémantique.

Cas d'usage courants

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

Questions fréquentes

Cela va-t-il réécrire ma requête ?
Non : le formatage est purement esthétique. Passez la sortie dans un linter si vous voulez des vérifications de correction.

Outils connexes