从此命令行导入带有119397条记录(4.37 MB)的csv文件时
load data local infile '/var/www/email2.csv' into table email fields terminated by ',' enclosed by '"' lines terminated by '\n';
但只导入了50199条记录。像这样 (记录:51087删除:0跳过:0警告19)
我想一次导入所有记录。 我应该使用哪种方式?
以下是表格结构
CREATE TABLE IF NOT EXISTS `adv_email` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=22462 ;