Run Your Query
Execute your SELECT statement to display the data you want to export. The results will appear in the grid below.
Learn how to download data from SQL Developer by exporting query results to CSV, Excel, JSON, or other formats. Works with Oracle, MySQL, PostgreSQL, and all supported databases.
# Export job
source = query result grid
formats = CSV · Excel · JSON · XML · SQL INSERT
max_rows = unlimited (use LIMIT for samples)
encoding = UTF-8 recommended
# Setup info
time = 1 minute # for typical result sets
difficulty = Beginner
steps = 4
prereq = a running SELECT query
// supports batched export for very large tables
Four steps. Works the same for every supported database.
Execute your SELECT statement to display the data you want to export. The results will appear in the grid below.
Right-click anywhere in the results grid. A context menu will appear with several options.
Click Export and choose your format: CSV, Excel (.xlsx), JSON, XML, or SQL INSERT statements.
Choose where to save the file, give it a name, and click Save. That's it.
Four formats cover the most common use cases. Pick the one that matches the downstream consumer.
Exporting millions of rows? Three settings keep things smooth.
-- Test the export format with a small sample
SELECT * FROM your_table LIMIT 100;
-- ... then re-run without LIMIT for the full export
-- For very large tables, export in batches
SELECT * FROM orders LIMIT 100000 OFFSET 0;
SELECT * FROM orders LIMIT 100000 OFFSET 100000;
// avoids memory issues with very large result sets
# If data has special characters (accents, emojis, etc.)
encoding = UTF-8
why = prevents mojibake / question marks
Three failure modes most often hit when exporting from SQL Developer.
.xlsx directly which preserves UTF-8 by design.LIMIT ... OFFSET and export in chunks.YYYY-MM-DD HH24:MI:SS (ISO 8601). Excel parses ISO dates correctly.If you need to import instead, or run scripts.
The inverse workflow — loading CSV files, Excel sheets, or .txt data into a database table — uses the same Data Wizard with the direction reversed. Six steps, supports millions of rows with batch commits.
See also: Run SQL Scripts · Download SQL Developer