You can perform data export/import or migration for database table(s).We'll describe most typical use cases.
Exporting table data to CSV format
- Select a table(s) you want to export. In the context menu choose "Export Data".(Note: you also can export data from custom SQL queries results. For that in results context menu choose "Export results").
- Choose export format. DBeaver support many different output formats including CSV, HTML, XLSX, etc:
- Set data extraction options (how data will be read from tables). This may affect extraction performance:
- Set export format option. They are specific to the data format you chose on step 2:
- Set options for output files or clipboard:
- Review what and to what format you will export:
- Press finish. See extraction progress. Actual data extraction will be performed in background, you can keep working with your database during export process.Note: avoid changing data in tables you selected for export while export is running.In the end you will see status message:
Importing data from CSV format
You can import data from CSV file(s) directly into your database table(s).
- Select a table(s) to which you want to import data. In the context menu choose "Import Data":
- Choose import format (CSV):
- Select input CSV file for each table you want to import:
- Set CSV-to-table mappings.You need to set some column in CSV file for each database table column.You can skip some column at all (in target table column value will be set to NULL).You can set some constant value for table column if there is no source column for it in CSV.
- Set options for loading data in database. These options may affect performance:
- Review what file(s) and to what table(s) you will import:
- Press finish. See extraction progress. Actual data loading will be performed in background, you can keep working with your database during export process.Note: avoid changing data in tables you selected for import while import is running.In the end you will see status message: