Generatore Schema DDL

Inferisci schema database rigoroso (Postgres) da CSV.

I tuoi file non lasciano mai il tuo dispositivo. Elaborati localmente. 100% privato.

Unlocking Tool Engine...

Come si usa Generatore Schema DDL

Completa il tuo compito in soli tre semplici passaggi.

1

Carica CSV

Trascina il tuo file CSV.

2

Configura

Scegli il dialetto SQL, il nome della tabella e regola i tipi di colonna rilevati.

3

Scarica SQL

Scarica l'istruzione CREATE TABLE DDL.

Domande Frequenti

Tutto ciò che devi sapere sul Generatore Schema DDL.

Quali dialetti SQL sono supportati?

PostgreSQL, MySQL, SQLite, SQL Server e BigQuery.

I tipi di dati vengono rilevati automaticamente?

Sì — INTEGER, FLOAT, DATE, BOOLEAN e VARCHAR con lunghezze dedotte.

Il mio file viene caricato?

No. Tutto viene eseguito localmente nel tuo browser.

Limite di dimensione del file?

Elabora i file fino al limite di memoria del browser.

Posso aggiungere indici al DDL?

Sì — aggiungi le definizioni PRIMARY KEY e INDEX prima del download.

Can I customize the table name?

Yes. There is a table name input field above the generated DDL. By default it uses raw_data_import. Change it to your desired table name before copying — the table name is embedded throughout the CREATE TABLE statement.

How accurate is the type inference on messy real-world data?

Type inference is accurate for clean, consistently-typed columns. Edge cases to watch: mixed-type columns (e.g., a column with mostly numbers but some text like 'N/A') will fall through to VARCHAR — use CSV Repair or the Cleaner tool to standardize nulls first. Dates in non-ISO formats (e.g., 15-Jan-2024) may not be detected as TIMESTAMP — use the Date Fixer tool to standardize them to YYYY-MM-DD first.