Re: \copy command: how to define a tab character as the delimiter

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: \copy command: how to define a tab character as the delimiter
Дата
Msg-id 22140.1268155317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на \copy command: how to define a tab character as the delimiter  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: \copy command: how to define a tab character as the delimiter  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
Thomas Kellerer <spam_eater@gmx.net> writes:
> \copy foo (foo, bar) from foobar.txt delimiter as '\t' csv header

> So how can I specify a tab character if I also need to specify that my file has a header line?

Type an actual tab.

            regards, tom lane

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

Предыдущее
От: Harald Fuchs
Дата:
Сообщение: Re: DROP column: documentation unclear
Следующее
От: Bryan Montgomery
Дата:
Сообщение: Re: Trying to get a C function built with MSVC