-1

所以csv文件的结构是这样的:

Country,City,AccentCity,Region,Population,Latitude, 
ad,aixas,Aixàs,06,,42.4833333,1.4666667
ad,aixirivali,Aixirivali,06,,42.4666667,1.5
ad,aixirivall,Aixirivall,06,,42.4666667,1.5
ad,aixirvall,Aixirvall,06,,42.4666667,1.5

问题是我不知道如何构建加载数据查询,我的意思是要使用哪些分隔符等等,也许你们可以帮助我提供一个工作示例。

4

1 回答 1

0

这对你有帮助吗?

load data local infile 'myfile.csv' into table myTable fields terminated by ','
lines terminated by '\n'
(Country,City,AccentCity,Region,Population,Latitude)
于 2013-05-15T21:46:32.180 回答