Re: csv copy error

Поиск
Список
Период
Сортировка
От ourdiaspora
Тема Re: csv copy error
Дата
Msg-id ErlPDvE1ztJUi8lRrFzTU-POEnxuDVd4WcZdh0_lkBY-A0jUzS0Ou5h1-Gk06sI6lGGs0IUxjUSJuS9x5itZANpnjwq9zgsGGdvpQoQV5lo=@protonmail.com
обсуждение исходный текст
Ответ на Re: csv copy error  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-general
On Thursday, December 30th, 2021 at 7:30 AM, Guillaume Lelarge <guillaume@lelarge.info> wrote:

> Hi,
>
> Le mer. 29 déc. 2021 à 22:08, ourdiaspora <ourdiaspora@protonmail.com> a écrit :
>
> >
> > \copy exampletable from '/local/path/to/examplefile.csv';
> >
>
> You should tell the CSV command you're using a CSV file. By default, COPY thinks it's a TSV file.
>

Problem solved with:

"
...file.csv' with csv;
"

Thanks to all.




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

Предыдущее
От: Hasan Marzooq
Дата:
Сообщение: Re: pg_config header files are missing - Postgres 13 - Amazon Linux 2
Следующее
От: ourdiaspora
Дата:
Сообщение: create query with date values