export table to csv on postgres

前端 未结 5 1219
甜味超标
甜味超标 2021-02-05 13:56

How can I export a table to .csv in Postgres, when I\'m not superuser and can\'t use the copy command?

I can still import the data to postgres

5条回答
  •  旧巷少年郎
    2021-02-05 14:56

    COPY your_table TO '/path/to/your/file.csv' DELIMITER ',' CSV HEADER;
    

    For more details go to this manual

提交回复
热议问题