Re: csv copy error

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: csv copy error
Дата
Msg-id 8e6e38ce-5448-e2f6-a074-c329e437f351@aklaver.com
обсуждение исходный текст
Ответ на csv copy error  (ourdiaspora <ourdiaspora@protonmail.com>)
Ответы Re: csv copy error  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
On 12/29/21 13:08, ourdiaspora wrote:
> Readers,
> 
> Please could anyone help with the following error produced:
> 
> "
> ERROR:  invalid input syntax for integer: "1,m "
> CONTEXT:  COPY exampletable, line 1, column examplenumber: "1,m "
> 
> The database commands:
> 
> "
> CREATE TABLE exampletable (examplenumber smallint,
> exampletitle varchar(500)
> );
> "
> 
> "
>   \copy exampletable from '/local/path/to/examplefile.csv';
> "

\copy exampletable from '/local/path/to/examplefile.csv with csv';

> 
> CSV file contents:
> 
> "
> 1,m
> 2,m
> 9,t
> "
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: ourdiaspora
Дата:
Сообщение: csv copy error
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: csv copy error