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

后端 未结 5 1875
日久生厌
日久生厌 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

    If you are using Vertica, you could use E'\t'or U&'\0009'

    To indicate a non-printing delimiter character (such as a tab), specify the character in extended string syntax (E'...'). If your database has StandardConformingStrings enabled, use a Unicode string literal (U&'...'). For example, use either E'\t' or U&'\0009' to specify tab as the delimiter.

提交回复
热议问题