COPY products_273 TO '/tmp/products_199.csv' WITH (FORMAT CSV, HEADER);
as described in the manual.
More Related Contents:
- How to import CSV file data into a PostgreSQL table
- Save PL/pgSQL output from PostgreSQL to a CSV file
- Can I automatically create a table in PostgreSQL from a csv file with headers?
- In PostgreSQL, how to insert data with COPY command?
- ERROR: could not stat file “XX.csv”: Unknown error
- Importing .csv with timestamp column (dd.mm.yyyy hh.mm.ss) using psql \copy
- PostgreSQL: export resulting data from SQL query to Excel/CSV
- PostgreSQL: Show tables in PostgreSQL
- PostgreSQL “DESCRIBE TABLE”
- PostgreSQL function for last inserted ID
- What are ‘$$’ used for in PL/pgSQL
- How to update selected rows with values from a CSV file in Postgres?
- Adding ‘serial’ to existing column in Postgres
- Do nullable columns occupy additional space in PostgreSQL?
- How do I efficiently select the previous non-null value?
- Postgresql : Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections [duplicate]
- Dynamic SQL (EXECUTE) as condition for IF statement
- Disable PostgreSQL foreign key checks for migrations
- Prevent recursive trigger in PostgreSQL
- serial in postgres is being increased even though I added on conflict do nothing
- Can’t connect to Postgresql on port 5432
- PostgreSQL Error: Relation already exists
- Export specific rows from a PostgreSQL table as INSERT SQL script
- How to make a select with array contains value clause in psql
- Using row_to_json() with nested joins
- Process CSV Into Array With Column Headings For Key
- Sorting array elements
- How do I alter the date format in Postgres?
- OpenShift: How to connect to postgresql from my PC
- clojure.java.jdbc lazy query