错误代码1261--将csv文件导入mysql workbench 6.2

时间:2015-06-02 18:54:40

标签: mysql database csv

我目前正在尝试使用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; 

非常感谢任何帮助。

0 个答案:

没有答案