打赏

mysql 导入excel文件数据到数据库

load data local infile 'C:/Users/Administrator/Documents/gaunai2.csv'
into table newtable (c1,c2)
fields terminated by ','

 

load data infile "d:\guanaicheliang.csv"
into table newtable(c1,c2)
fields terminated by ','
lines terminated by '\n'

posted @ 2019-01-18 12:37  刘奇云  阅读(393)  评论(0)    收藏  举报