mapping excel data to mysql database

2019-08-15 17:47发布

how to mapping excel data column name to mysql data field? and mapping between excel data column name and mysql data field name and getting the excel data from excel file

标签: php mysql excel
3条回答
够拽才男人
2楼-- · 2019-08-15 17:54

save your excel file as csv and type the query load local data infile "your file path" into your table name fields terminated by "," lines terminated by "\n";`

查看更多
\"骚年 ilove
3楼-- · 2019-08-15 18:01

use LOAD DATA INFILE with a delimited text file (save the Excel as .txt). You choose exactly which columns map to which fields.

查看更多
女痞
4楼-- · 2019-08-15 18:12

Here's the method I use for getting data from Excel to MySQL: Excel to MySQL using Add-ins

查看更多
登录 后发表回答