11. Import & Export Data
Import CSV file into Table
(show you how to import CSV file into a table.)
You need to first create a table with all the columns
Second, prepare CSV data
Example 1
PostgreSQL gives back the following message:
It means that two rows have been copied.
Example 2
If CSV file contains all columns of the table, you donβt need to specify them explicitly
Export PostgreSQL Table to CSV file
(show you how to export tables to a CSV file.)
If you want to export all columns of a table
If you want to export specific columns of a table
Last updated