Re: [GENERAL] import CSV file to a table

Поиск
Список
Период
Сортировка
От Bret Stern
Тема Re: [GENERAL] import CSV file to a table
Дата
Msg-id 1488992089.3126.8.camel@bret.machinemanagement.com
обсуждение исходный текст
Ответ на Re: [GENERAL] import CSV file to a table  (Karl Czajkowski <karlcz@isi.edu>)
Список pgsql-general
I'll throw in.

If tab delimited is available, perhaps that option will work better...or..
use Access to find the violations of the quote comma delimited assumptions, then
export from Access an import

Bret


On Wed, 2017-03-08 at 08:36 -0800, Karl Czajkowski wrote:
I believe that in its fully glory, you cannot reliably locate CSV
record boundaries except by parsing each field in order including
quote processing.  Individual records may have arbitrary numbers of
field and record separator characters within the values.

Karl


On Mar 08, Rob Sargent modulated:
> Since bash has been bandied about in this thread I presume awk is
> available.  Here's how I would check just how 'csv'ish the incoming
> file is.
> ...



В списке pgsql-general по дате отправления:

Предыдущее
От: Karl Czajkowski
Дата:
Сообщение: Re: [GENERAL] import CSV file to a table
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: [GENERAL] import CSV file to a table