Convert semicolon delimited text to SQL

Want to convert TXT (“;” semicolon delimited text) file to SQL file?

If you want to import TXT (“;” semicolon delimited text) file to SQL Server, see this page: TXT (“;” semicolon delimited text) to SQL Server.

If you want to import TXT (“;” semicolon delimited text) file to SQLite, see this page: TXT (“;” semicolon delimited text) to SQLite.

Try Withdata Data File Converter, a desktop TXT to SQL converter for Windows, MacOS, and Linux, Convert TXT to SQL, Easy and Fast.

Download Withdata DataFileConverter Download DataFileConverter

Convert TXT (“;” semicolon delimited text) to SQL

Choose TXT file -> Set SQL file -> Convert TXT to SQL

“Start a New Convert” for “TXT to SQL”.

convert TXT file to SQL file - task window

Select From “File” “TXT” To “File” “SQL”.

create SQL file by TXT file - select type

1. Open source TXT (“;” semicolon delimited text) file.

Support large TXT file ( > 4GB ).

transform TXT file to SQL file - open a TXT file

Source TXT file’s content is like this:

TXT to SQL converter - source TXT file

2. Config target SQL file.

generate SQL file by TXT file - config SQL file

3. Set rows options.

convert TXT file to SQL file - summary

4. Convert TXT to SQL.

convert TXT file to SQL file - convert file

After converting, you can view the output SQL file.

convert TXT file to SQL file - view SQL file


More about TXT to SQL converter

See Video: Convert TXT (“;” semicolon delimited text) file to SQL file without coding

See also:

Semicolon-delimited text → SQL reference

Type mapping

Value kindin Semicolon-delimited textin SQL
Int1234INT
Bigint9007199254740993BIGINT
Decimal1234.56DECIMAL(p,s)
Float1.234e+10DOUBLE PRECISION
Textquoted only when it contains a semicolon or a quoteVARCHAR(n)
Long textmust be quoted; line breaks inside force multi-line recordsTEXT / CLOB
Date2026-09-18DATE
Datetime2026-09-18 14:30:00TIMESTAMP
Binarynot representable - base64 or hex stringBLOB / BYTEA
BooleanTRUE / FALSE, or 1 / 0 depending on the writerBOOLEAN / SMALLINT
JSONthe whole JSON value quoted, with internal quotes doubledJSON / TEXT

Dialect differences

Both Semicolon-delimited text and SQL are file formats, so what differs below is how each one chooses to represent a value.

Propertyin Semicolon-delimited textin SQL
identifiersDouble quotes; a literal quote is doubled ("" )Two competing conventions: single-quoted literals and diale...
datesDates often use D/M/Y or D.M.Y in European exportsDepends on the dialect: DATE literals, TO_DATE(), or plain ...
binaryNot supportedDialect-specific: X-quoted literal, 0x hex, or decode()
separatorSemicolon ";"Statement terminators (;)
encodingOften ANSI or Latin-1 in European exports; UTF-8 needs a BOMNo declaration
typingNone - every field is textTypes belong to the target database, and they differ betwee...
shapeFlat table, optional header rowStatements; a dump usually means CREATE TABLE plus INSERT rows
ceilingNo formal limit; row count bounded by memoryNo formal limit, but a single INSERT statement has to fit i...

Data File Converter without the manual work

For batch jobs, large files and scheduling use the Data File Converter converter — an offline desktop app for Windows, Linux and macOS. Free trial.


Posted

in

by