Re: Can COPY skip columns?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Can COPY skip columns?
Дата
Msg-id 17862.1100798138@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Can COPY skip columns?  (Adam Witney <awitney@sghms.ac.uk>)
Ответы Re: Can COPY skip columns?  (Adam Witney <awitney@sghms.ac.uk>)
Re: Can COPY skip columns?  (Terry Lee Tucker <terry@esc1.com>)
Список pgsql-general
Adam Witney <awitney@sghms.ac.uk> writes:
> Is it possible for the COPY command to read data from a file, but skip
> specific columns?

Nope.  When you get into significant massaging of the input data,
usually the best bet is to COPY into a temp table that exactly matches
the format of the data file, and then do your rearrangements using an
INSERT/SELECT into the final target table.

            regards, tom lane

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

Предыдущее
От: Adam Witney
Дата:
Сообщение: Re: Can COPY skip columns?
Следующее
От: Richard_D_Levine@raytheon.com
Дата:
Сообщение: Re: Certifications in military environment