問題:
I'm trying to export a PostgreSQL table with headings to a CSV file via command line, however I get it to export to CSV file, but without headings.我正在嘗試通過命令行將帶有標題的PostgreSQL表導出到CSV文件,但是我將其導出到CSV文件,但是沒有標題。
My code looks as follows:我的代碼如下所示:
COPY products_273 to '/tmp/products_199.csv' delimiters',';
解決方案:
參考一: https://en.stackoom.com/question/4hOH參考二: https://stackoom.com/question/4hOH