copy from csv - Mailing list pgsql-novice

From Scott Porter
Subject copy from csv
Date
Msg-id 616F14BF5C4C7F4BA02CFBC604CB30BA0299DCE7@mx1.frontierus.local
Whole thread Raw
List pgsql-novice

I am copying data from a CSV file using the query noted below.   Many items in my CSV file contain the double quotes in the field (i.e., ‘20” COLOR MONITOR’).  This field imports as, ‘""20"" COLOR MONITOR""’.  How do I remove all those extra quotes?  Also, should I be using the STDIN parameter or is my query below sufficient?

 

COPY item_master

(id, description, unit_measure, mfg, product_line)

FROM 'c:/item_test1.csv'

using delimiters ','

 

 

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: ERROR: could not find tuple for attrdef NNNNNNNN
Next
From: "gcj"
Date:
Subject: Simple Text Field Encryption