Want to import data from each table in a SQL file to a separate SQLite table?
Try Withdata FileToDB, a SQL to SQLite converter, Import each table data in a SQL file to a separate SQLite table, Easy and Fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Import SQL to SQLite locally and privately, avoid uploading SQL file(s) to online services.
- Support Windows, Linux, and macOS.
Import data from each table in a SQL file to a separate SQLite table
Select tables in SQL file -> Set SQLite tables -> Import SQL data to SQLite
Choose SQLite and logon.

Click “Wizard – 1 File To N Tables” at task dialog.

Select the “SQL” file type.

then show the wizard.
1. Open a SQL file, select tables.

2. Show existing SQLite tables, choose “Import Type”.

3. Set SQLite tables.

4. Show summary, set “Convert Rows”.

5. Import data from each table in a SQL file to a separate SQLite table.

View imported data in SQLite table

More about SQL file to SQLite converter
See Video: Import each table data in a SQL file to a separate SQLite table at one time
SQL → SQLite reference
Type mapping
| Value kind | in SQL | in SQLite |
|---|---|---|
| Int | INT | INTEGER |
| Bigint | BIGINT | INTEGER |
| Decimal | DECIMAL(p,s) | NUMERIC |
| Float | DOUBLE PRECISION | REAL |
| Text | VARCHAR(n) | TEXT |
| Long text | TEXT / CLOB | TEXT |
| Date | DATE | TEXT |
| Datetime | TIMESTAMP | TEXT |
| Binary | BLOB / BYTEA | BLOB |
| Boolean | BOOLEAN / SMALLINT | INTEGER |
| JSON | JSON / TEXT | TEXT |
Dialect differences
SQL is a file format and SQLite is a database server, so the target has to be told the types the file never carried - the rows below are where the two sides diverge.
| Property | in SQL | in SQLite |
|---|---|---|
| port | — | (file-based) |
| identifiers | Two competing conventions: single-quoted literals and diale... | "double quotes" or [brackets] |
| row limit | — | LIMIT n |
| dates | Depends on the dialect: DATE literals, TO_DATE(), or plain ... | TEXT (no date type) |
| long text | — | TEXT |
| binary | Dialect-specific: X-quoted literal, 0x hex, or decode() | BLOB |
| separator | Statement terminators (;) | — |
| encoding | No declaration | — |
| typing | Types belong to the target database, and they differ betwee... | — |
| shape | Statements; a dump usually means CREATE TABLE plus INSERT rows | Tables of rows and columns |
| ceiling | No formal limit, but a single INSERT statement has to fit i... | — |
Command line
| Side | Command |
|---|---|
| SQLite | sqlite3 .dump |
| SQLite (load) | .import (sqlite3) |
Convert your data online, free
Free in-browser converters for CSV, Excel, JSON, XML and SQL: Withdata Online Data Conversion. Large files, batch conversion or scheduling? See the offline desktop apps, or browse all data conversion tools.
