Re: How to import a CSV file (originally from Excel)

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: How to import a CSV file (originally from Excel)
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA3529C@algol.sollentuna.se
обсуждение исходный текст
Ответы Re: How to import a CSV file (originally from Excel)  (Craig White <craigwhite@azapple.com>)
Список pgsql-general
> > \copy "Flight Traffic" from yourfile.csv delimiter as ','
> csv quote as
> > '"'
> >
> > (might need some adaption, of course)
> >
> >
> > Loading 45,000 lines is trivial for copy, it shouldn't take
> noticable
> > time at all.
> ----
> along these lines - can I do something similar (CSV file) but
> 'update' 2 or 3 columns?

I'd use COPY to a temp table, then run a normal UPDATE on that.

//Magnus

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

Предыдущее
От: Janning Vygen
Дата:
Сообщение: Hardware related question: 3ware 9500S
Следующее
От: "Ian Harding"
Дата:
Сообщение: Leverage your PostgreSQL V8.1 skills to learn DB2