Import a CSV file into SQLite
Create a table from a CSV file and check imported values.
Step-by-step instructions
- Create or open a database in DB Browser for SQLite.
- Choose File → Import → Table from CSV file and select your CSV.
- Review delimiter, encoding and header settings in the import preview. Choose a suitable table name.
- Inspect the resulting table, especially numeric values, dates and empty fields. Write changes when satisfied.
SQL example
Adapt example table names to your database.
SELECT COUNT(*) FROM imported_data;