PG COPY error: invalid input syntax for integer

前端 未结 12 1807
走了就别回头了
走了就别回头了 2020-12-29 01:02

Running COPY results in ERROR: invalid input syntax for integer: \"\" error message for me. What am I missing?

My /tmp/people.cs

12条回答
  •  误落风尘
    2020-12-29 01:49

    CREATE TABLE people (
      first_name varchar(20),
      age        integer,
      last_name  varchar(20)
    );
    

    "first_name","age","last_name" Ivan,23,Poupkine Eugene,,Pirogov

    copy people from 'file.csv' with (delimiter ';', null '');

    select * from people;
    

    Just in first column.....

提交回复
热议问题