csv文件导入mysql数据库

sql script

load data infile  "address_200w.csv"  into table ethereum_addrs
FIELDS TERMINATED BY ','  #分隔符
ENCLOSED BY '"'  #结尾符
LINES TERMINATED BY '\n'  #换行
(address,col_02);

参考:

https://zhuanlan.zhihu.com/p/26964403

你可能感兴趣的:(csv文件导入mysql数据库)