Convert each table data in a SQL file to a separate Excel file

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

Try Data File Converter, a SQL converting tool for Windows, MacOS, and Linux, Convert tables in a SQL file to Excel files, 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 SQL file(s) to online services.

Download Withdata DataFileConverter Download DataFileConverter

Convert each table data in a SQL file to a separate Excel file

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

Click “Start a New Convert” at task dialog.

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

then show the wizard.

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

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

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

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

2. Config target Excel files.

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

3. Summary.

List selected tables.

transform each table data in a SQL file to a separate Excel file - list tables

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

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

convert each table data in a SQL file to a separate Excel file - convert

After converting, you can view output Excel files.

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

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

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

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

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

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

FAQ

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

More about Withdata DataFileConverter – Tables in SQL file to Excel converter

See Video: Convert each table data in a SQL file to a separate Excel file at one time

SQL → EXCEL reference

Type mapping

Value kindin SQLin EXCEL
IntINT1234 (a real numeric cell)
BigintBIGINT9007199254740993 (exact only while the cell stays text)
DecimalDECIMAL(p,s)1234.56 (numeric cell, format controls the displayed decimals)
FloatDOUBLE PRECISION1.234E+10 (numeric cell)
TextVARCHAR(n)text cell; leading zeros survive only if the column is text
Long textTEXT / CLOBtext cell; wraps inside the cell rather than the row
DateDATEa serial number plus a date cell format
DatetimeTIMESTAMPa serial number plus a date-time cell format
BinaryBLOB / BYTEAnot representable as data
BooleanBOOLEAN / SMALLINTTRUE / FALSE (a real boolean cell)
JSONJSON / TEXTa text cell; the quotes are part of the value

Dialect differences

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

Propertyin SQLin EXCEL
identifiersTwo competing conventions: single-quoted literals and diale...Not applicable; a cell holds exactly one value
datesDepends on the dialect: DATE literals, TO_DATE(), or plain ...Stored as a serial number; only the cell format makes it lo...
binaryDialect-specific: X-quoted literal, 0x hex, or decode()Only as text or an embedded object, not as a data column
separatorStatement terminators (;)Cells, not delimiters
encodingNo declarationUTF-8 internally, declared in the package
typingTypes belong to the target database, and they differ betwee...Real cell types: text, number, date, boolean, error
shapeStatements; a dump usually means CREATE TABLE plus INSERT rowsMultiple sheets, each a flat grid
ceilingNo formal limit, but a single INSERT statement has to fit i...1,048,576 rows x 16,384 columns per sheet; 255 sheets per w...

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