我目前正在尝试使用workbench 6.2将大型csv文件加载到mysql中。我一直遇到的问题是我收到错误消息“错误代码:1261。行4670297不包含所有列的数据。下面是我正在使用的代码。
将FIELDS TERMINATED BY ","
更改为FIELDS TERMINATED BY '","'
并且没有差异
LOAD DATA INFILE 'c:/rates.csv'
INTO TABLE rates
FIELDS TERMINATED BY ","
ENCLOSED BY ''
LINES TERMINATED BY '\r'
IGNORE 1 ROWS;
非常感谢任何帮助。