I have a .xls file that i would like to import into a mysql database, I am ok creating the mysql table _temp in my webspace and try this code in mysql:
LOAD DATA INFILE
'D:/11_02_11.xls'
INTO TABLE _temp
FIELDS TERMINATED BY ',' IGNORE 1 LINES;
But error:
[Err] 1261 - Row 1 doesn’t contain data for all columns
LOAD DATA INFILE 'D:/11_02_11.xls'
REPLACE INTO TABLE _temp
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '\\"'
LINES TERMINATED BY '\\r\
' IGNORE 1 LINES ;
The fields are in the same order in the DB as they are in the .xls