我正在尝试从...导入数据 ftp://ftp.bls.gov/pub/time.series/la/la.area_type
mysql -e"CREATE TABLE test.area_type (area_type_code varchar(100), state_wide varchar(100))"
mysql -e"load data local infile 'la.area_type' into table test.area_type fields terminated by '\t' ignore 1 lines;"
上面的load data命令确实导入了第二列,但无法导入第一列。导入数据的正确加载数据命令应该是什么?
答案 0 :(得分:1)
csv似乎是dos格式,请尝试
dos2unix la.area_type
再次重新导入