Convert each sheet in an Excel file to a separate SQL file

Want to convert each sheet data in an Excel file to a separate SQL file at one time?

Try Withdata Data File Converter, an Excel to SQL converter for Windows, MacOS, and Linux, Batch convert Excel sheets to SQL, 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.
  • Convert files locally and privately, avoid uploading large Excel file(s) to online services.

Download Withdata DataFileConverter Download DataFileConverter

Convert each sheet data in an Excel file to a separate SQL file

Select source Excel file -> Set target SQL file -> Convert Excel sheet to SQL file

Click “Start a New Convert” at task dialog.

batch convert each sheet data in an Excel file to a separate SQL file - task window

then show the wizard.

Select From “File” “Excel” To “Files” “SQL”.

extract each sheet data in an Excel file to a separate SQL file - select type

1. Open a source Excel file, select sheets to convert to SQL files.

bulk convert each sheet data in an Excel file to a separate SQL file - select Excel file

2. Config target SQL files.

bulk extract each sheet data in an Excel file to a separate SQL file - config SQL files

3. Summary.

List selected sheets.

transform each sheet data in an Excel file to a separate SQL file - list sheets

convert each sheet data in an Excel file to a separate SQL file - summary

4. Convert each Excel sheet to a separate SQL file.

convert each sheet data in an Excel file to a separate SQL file - convert

After converting, you can view output SQL files.

convert each sheet data in an Excel file to a separate SQL file - view SQL file

Convert each Excel sheet to a separate SQL file in command line

Save “SQL table to SQL” session, then you can:

Set scheduled tasks for converting each Excel sheet data to a separate SQL file

You can schedule and automate this Excel sheet to SQL converting task by:

  1. Save session and create .bat (Windows) or .sh (Linux/macOS) file for “Excel sheet to SQL” conversion.
  2. Set scheduled task for “Excel sheet to SQL” conversion.

FAQ

What is Withdata DataFileConverter?
How long does it take to convert each Excel sheet to a separate SQL file?
Is it safe to convert each Excel sheet to a separate SQL file using DataFileConverter?
Can I convert each Excel sheet to a separate SQL file on Linux, Mac OS?
Can I convert each Excel sheet to a separate SQL file in command line?

More about Withdata DataFileConverter – Excel sheets to SQL converter

See Video: Convert each worksheet in an Excel file to a separate SQL file at one time

EXCEL → SQL reference

Type mapping

Value kindin EXCELin SQL
Int1234 (a real numeric cell)INT
Bigint9007199254740993 (exact only while the cell stays text)BIGINT
Decimal1234.56 (numeric cell, format controls the displayed decimals)DECIMAL(p,s)
Float1.234E+10 (numeric cell)DOUBLE PRECISION
Texttext cell; leading zeros survive only if the column is textVARCHAR(n)
Long texttext cell; wraps inside the cell rather than the rowTEXT / CLOB
Datea serial number plus a date cell formatDATE
Datetimea serial number plus a date-time cell formatTIMESTAMP
Binarynot representable as dataBLOB / BYTEA
BooleanTRUE / FALSE (a real boolean cell)BOOLEAN / SMALLINT
JSONa text cell; the quotes are part of the valueJSON / TEXT

Dialect differences

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

Propertyin EXCELin SQL
identifiersNot applicable; a cell holds exactly one valueTwo competing conventions: single-quoted literals and diale...
datesStored as a serial number; only the cell format makes it lo...Depends on the dialect: DATE literals, TO_DATE(), or plain ...
binaryOnly as text or an embedded object, not as a data columnDialect-specific: X-quoted literal, 0x hex, or decode()
separatorCells, not delimitersStatement terminators (;)
encodingUTF-8 internally, declared in the packageNo declaration
typingReal cell types: text, number, date, boolean, errorTypes belong to the target database, and they differ betwee...
shapeMultiple sheets, each a flat gridStatements; a dump usually means CREATE TABLE plus INSERT rows
ceiling1,048,576 rows x 16,384 columns per sheet; 255 sheets per w...No 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