第一种方法:
转换成text文件,将多余的字段去掉,全选复制到txt文件中,将最上面的字段名去掉,去掉尾部的空格,然后执行mysql语句
load data infile 'D:/data5.txt' replace into table think_work character set utf8
fields terminated by '\t' lines terminated by '\n' (`number`,`name`,`time`);
load data infile 'D:/data3.txt' replace into table think_work character set utf8
fields terminated by '\t' lines terminated by '\n' (`name`,`time`,`number`);
第二种方法,循环excel表中的内容: