0

Is there anyway to disable QUOTE AS this data distributor is giving out a file that has a set up like,

col1,col2
foo,bar

Some columns are a little more complex

col1,col2
Test outside-"bar' Blah blah` Someone else,What

Now the question: Is there a better way than giving QUOTE AS a character that is assumed not to exist?

\COPY maxmind.country FROM worldcitiespop.txt CSV QUOTE AS '$' HEADER

Where $ is an assumption the character doesn't exist?

1 Answer 1

1

You don't need to know that the quote character doesn't exist, csv formats can escape quotes if necessary. You should just pick the appropriate dialect for what worldcitiespop.txt contains.

Sign up to request clarification or add additional context in comments.

1 Comment

There is no quote character though, it's just comma separated, i.e., commas can not occur in the data all possible quote characters can.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.