Importing .csv into MySQL table
I have a .csv file with 3 fields (lastname,firstname,phone) and I created a table in MySQL Query Browser 1.2.17 that has the same fields, plus the primary key field set to auto-increment. I get an error when I try to implement the below code that states there is a syntax error, but it isn't specific. Any ideas?
LOAD DATA INFILE 'Test.csv'
INTO TABLE employees
(lastname,firstname,phone)
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
Subject
Written By
Posted
Importing .csv into MySQL table
January 21, 2019 01:03PM
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.