# Generatore di INSERT SQL

> Crea istruzioni SQL INSERT con escape dai dati JSON.

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

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

## Overview (en)

SQL INSERT generator turns a JSON array of objects into one multi-row INSERT statement with escaped values. Column names come from all object keys and are quoted for PostgreSQL or MySQL. Strings are single-quoted with quotes doubled, null becomes NULL, booleans become TRUE or FALSE, and nested values are stored as JSON text.

## Supported tasks (it)

Crea istruzioni SQL INSERT con escape dai dati JSON.

## Steps (it)

1. Digita o incolla il testo di origine, oppure carica un esempio.
2. Modifica le impostazioni di base o apri la modalità avanzata per ottimizzare il risultato.
3. Esamina e copia o scarica il risultato. Metti in pausa i risultati in tempo reale per eseguire manualmente. Origini o singole impostazioni superiori a 20.000 caratteri richiedono un'esecuzione esplicita.

## Settings

- Nome della tabella (it; key: table; type: text)
- Quotatura degli identificatori (it; key: dialect; type: select): postgresql [it], mysql [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
[{"name":"ToolCabana","count":2},{"name":"Example","count":3}]
```

## 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)

### How do I generate SQL INSERT statements from JSON?

Paste a JSON array of objects, enter the table name and choose PostgreSQL or MySQL identifier quoting. The output is a single INSERT INTO statement with one VALUES row per object.

### How are missing JSON keys handled in the INSERT?

Every key found in any object becomes a column. When an object lacks a key, NULL is written for that column in its row.

### Why is my table name rejected?

The table name must be a simple identifier: letters, digits and underscores, starting with a letter or underscore. Schema-qualified names with a dot are not accepted.

### 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

- [SQL formatter](https://www.toolcabana.com/it/sql-formatter)
- [Random test data generator](https://www.toolcabana.com/it/test-data)
- [JSON to TypeScript](https://www.toolcabana.com/it/json-to-typescript)
- [String escape unescape](https://www.toolcabana.com/it/string-escape)
