Data tools

Convert CSV to SQL

Creates a .sql file with INSERT statements from CSV or TSV data; it does not connect to a database.

Illustration · Change the representation

At a glance

Input
Select local CSV or TSV files in File Explorer.
Selection
At least 1 item
Result
Creates a .sql file with INSERT statements from CSV or TSV data; it does not connect to a database. Source files stay unchanged.
Before it runs
You see the options and a preview first.
Pack
Data tools · Included in the full edition

How it works

  1. Select local CSV or TSV files in File Explorer.
  2. Press Alt + Space and type “Convert CSV to SQL”.
  3. Choose PostgreSQL, MySQL, SQLite or SQL Server and enter the target table name.
  4. Start the action and check the result.

A practical example

Prepare CSV records for a later import into an existing database table.