1. 程式人生 > >mysql 導入excel文件數據到數據庫

mysql 導入excel文件數據到數據庫

oca fields bsp exce 導入 tab str excel文件 nbsp

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‘

mysql 導入excel文件數據到數據庫