天天看点

20.导入数据

1.load data

在MySQL中,可以使用load data语句将文本文件数据导入到对应的数据库表中,可以将load data语句看成是select…into outfile的反操作。

load data infile pathName
into table tableName
character set utf8 fields terminated by ','
enclosed by '"'
lines terminated by '\r\n';      
source pathName      

继续阅读