# Formattatore SQL

> Rende l'SQL più leggibile nel dialetto scelto.

[Open tool](https://www.toolcabana.com/it/sql-formatter) · [Sviluppo e dati](https://www.toolcabana.com/it/category/developer-and-data)

Tool ID: sql-formatter. Requested language: it. Description language: it. Complete guide translation: yes.

## Overview (en)

SQL formatter reformats a SQL query so each clause, such as SELECT, FROM, WHERE and ORDER BY, starts on its own line with its items indented below. You choose the dialect: standard SQL, PostgreSQL, MySQL, SQLite or Transact-SQL. Keyword case is kept as you typed it, and the query is only formatted, never run.

## Supported tasks (it)

Rende l'SQL più leggibile nel dialetto scelto.

## Steps (it)

1. Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
2. Imposta il dialetto SQL.
3. Esegui il formattatore SQL, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.

## Settings

- Dialetto SQL (it; key: dialect; type: select): sql [it], postgresql [it], mysql [it], sqlite [it], transactsql [it]

## Limitations (it)

Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.

## Example input

```text
select id, name from people where active=true order by name
```

## Privacy and connections (it)

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

## Questions (it)

### Which SQL dialects can I format?

The SQL dialect setting offers standard SQL, PostgreSQL, MySQL, SQLite and Transact-SQL. Choosing the dialect that matches your database helps the formatter recognize its specific syntax.

### Does the SQL formatter change keywords to uppercase?

No. Keywords keep the case you entered, so a lowercase select stays lowercase. The formatter changes line breaks, indentation and spacing around operators.

### Can I format several SQL statements at once?

Yes. Paste multiple statements separated by semicolons and each one is laid out on its own lines with the same dialect rules.

### Dove viene elaborato il mio input?

Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.

### Quali sono i limiti di input?

Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.

## Related tools

- [HTML beautifier](https://www.toolcabana.com/it/html-formatter)
- [XML formatter](https://www.toolcabana.com/it/xml-formatter)
- [CSS beautifier minifier](https://www.toolcabana.com/it/css-formatter)
- [JavaScript formatter](https://www.toolcabana.com/it/js-formatter)
