我正在尝试从中导出数据PostgreSQL
并将其导入SAP Hana
. 即'\n'
换行符会自动从 TEXT 数据中删除。
例子:
A 1,750 word essay is 11 to 12 paragraphs.
A 2,000 word essay is 13 to 14 paragraphs.
A 2,500 word essay is 16 to 17 paragraphs.
A 3,000 word essay is 20 paragraphs.
正变成
A 1,750 word essay is 11 to 12 paragraphs.A 2,000 word essay is 13 to 14 paragraphs.A 2,500 word essay is 16 to 17 paragraphs.A 3,000 word essay is 20 paragraphs.
我正在使用以下命令:
PostgreSQL
\COPY table_name TO 'path\data.csv' WITH CSV DELIMITER ',';
花
IMPORT FROM CSV FILE path
INTO table_name
WITH RECORD DELIMITED BY '\n'
FIELD DELIMITED BY '\t'
OPTIONALLY ENCLOSED BY '"';