ToolCabana

Generatore di INSERT SQL

Crea istruzioni SQL INSERT con escape dai dati JSON.

Favorites are saved in this browser. Find them in My favorites.

Generatore di INSERT SQL

Instant results · processed in your browser
Update results automatically as you type or change settings. Turn off to run manually.Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Type or paste to update the result automatically.

Your result appears here

Type, paste, or use an example. Copy your result when it is ready.

Come usare Generatore di INSERT SQL

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.

  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.

Cosa supporta questo strumento

Crea istruzioni SQL INSERT con escape dai dati JSON.

Nome della tabella
Set this value for your task.
Quotatura degli identificatori
postgresql · mysql

Limiti ed elaborazione

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.

Origine di esempio
[{"name":"ToolCabana","count":2},{"name":"Example","count":3}]

Domande frequenti

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.