copy from csv

Поиск
Список
Период
Сортировка
От Scott Porter
Тема copy from csv
Дата
Msg-id 616F14BF5C4C7F4BA02CFBC604CB30BA0299DCE7@mx1.frontierus.local
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: could not find tuple for attrdef NNNNNNNN
Следующее
От: "gcj"
Дата:
Сообщение: Simple Text Field Encryption