ERROR: COPY delimiter must be a single one-byte character

后端 未结 5 1871
日久生厌
日久生厌 2020-12-16 17:24

I want to load the data from a flat file with delimiter \"~,~\" into a PostgreSQL table. I have tried it as below but looks like there is a restriction for the delimiter. If

5条回答
  •  鱼传尺愫
    2020-12-16 17:39

    Not quite sure if you're looking for a postgresql solution or just a general one.

    If it were me, I would open up a copy of vim (or gvim) and run the commend :%s/~,~/~/g
    That replaces all "~,~" with "~".

提交回复
热议问题