【发布时间】:2013-09-02 00:39:56
【问题描述】:
我使用(所有)此处发布的说明从 postgresql 数据库中导出了一些数据:Save PL/pgSQL output from PostgreSQL to a CSV file
但是一些导出的字段包含换行符(换行符),所以我得到了一个 CSV 文件,例如:
header1;header2;header3
foobar;some value;other value
just another value;f*** value;value with
newline
nextvalue;nextvalue2;nextvalue3
如何转义(或忽略)这些换行符?
【问题讨论】:
标签: postgresql csv export-to-csv