问题陈述,mac osx 通过excel导出csv或者txt,转换为utf8后 ,再利用 load data infile语句导入数据,却发现无论怎么弄,换行符无法被识别!都只能识别到数据第一行,加了lines terminated by '\r\n' 也无效!
这是写的代码:
load data local infile '/Users/yousheng/Downloads/22.csv' into table exquestions fields terminated by ';' ;csv:
表结构:
结果只有一行!
这是写的代码:
load data local infile '/Users/yousheng/Downloads/22.csv' into table exquestions fields terminated by ';' ;csv:
表结构:
结果只有一行!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货