Export Postgres Database into CSV file

后端 未结 7 1970
醉梦人生
醉梦人生 2021-01-29 23:11

I want to export a Postgres database into a CSV file. Is this possible?

If it is possible, then how can I do this? I have seen that we can convert a particular table into

7条回答
  •  庸人自扰
    2021-01-29 23:43

    COPY tablename TO '/tmp/products_199.csv' DELIMITER ',' CSV HEADER;
    

    check this out

提交回复
热议问题