Re: Importing .csv into MySQL table
CREATE TABLE employees (id INT NOT NULL PRIMARY KEY, lastname VARCHAR(20), firstname VARCHAR(20), phone VARCHAR(20));
LOAD DATA INFILE 'Test.csv'
INTO TABLE employees
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES
(lastname,firstname,phone);
Error1062:Duplicate entry '0' for key 'PRIMARY'
Subject
Written By
Posted
Re: Importing .csv into MySQL table
January 21, 2019 02:25PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.