CSV zu SQL

Umfang und Grenzen

SQLite CREATE TABLE und INSERT in einer Transaktion erzeugen. Alle Spalten sind TEXT, um führende Nullen und große Zahlen zu erhalten. Leere Werte bleiben Zeichenketten, sofern NULL nicht ausgewählt ist. Maximal 10.000 Zeilen und 200 Spalten. SQL wird lokal erzeugt und nicht ausgeführt.

Erweitert

Ergebnis

Fülle die Felder aus und führe die Aktion aus, um das Ergebnis zu sehen.

CSV zu SQL

Convert CSV rows into a SQLite INSERT script in the browser. Set the table name, choose comma, semicolon, tab or pipe delimiters, decide whether the first row is a header, and map empty cells to NULL when needed. Quoted text is escaped for the generated statements; review the table identifier, column types and constraints before executing the script.

Funktionen

  • Parse comma, semicolon, tab or pipe-delimited CSV text.
  • Choose the table name and whether the first row contains column names.
  • Map empty cells to NULL or keep them as empty text values.
  • Copy or download the generated SQLite INSERT script.

Anleitung

  1. Paste CSV and choose the delimiter and header option.
  2. Enter the destination table name and empty-cell behavior.
  3. Generate the SQL and review identifiers, values and escaping.
  4. Copy or download the script, then run it only after checking your schema.