您可能需要设置FIELDS TERMINATED BY ','或者不管分隔符是什么。对于CSV文件,您的语句应该如下所示:LOAD DATA INFILE 'data.csv' INTO TABLE tbl_name
FIELDS TERMINATED BY ',' ENCLOSED BY '"'LINES TERMINATED BY '\r\n'IGNORE 1 LINES;