當我嘗試導出字段的文本內容並且該內容具有回車字符時,該字符將以\ N字符串形式輸出。將文本內容導出到文本文件時不帶 n標記
例如:
create table foo (txt text);
insert into foo (txt) values ('first line
second line
...
and other lines');
copy foo (txt) to '/tmp/foo.txt';
我想回到下面(一):
first line
second line
...
and other lines
但是,輸出是(B):
first line\Nsecond line\N...\Nand other lines
任何人都知道如何得到(a)輸出?
當你四處搜尋你發現了什麼? – JSuar