How do I import data from MS excel and insert in to MYSQL database ? Which language is easiest and fastest to do this task ?
Asked
Active
Viewed 4,527 times
4 Answers
6
If you can safely represent everything in a CSV format (just export from Excel) then you need only one command:
LOAD DATA INFILE '/tmp/coolfile.txt' INTO TABLE coolTable;

joeslice
- 3,454
- 1
- 19
- 24
3
I would use the swiss army knife of data manipulation in the windows world:
MS Access
Import the Excel sheet into an Access table, and export the table over ODBC to MySQL

Jeff Fritz
- 9,821
- 7
- 42
- 52
2
Not really a programming question, the fastest method I would suggest is export data from Excel to CSV-file, and then import it into MySQL using LOAD DATA INFILE command.

mkolodziejski
- 74
- 3
1
In Windows, you can use phpMyAdmin's import
feature. It has many options including import from Microsoft Excel!

Andrew Kozak
- 1,631
- 2
- 22
- 35

a82r
- 11
- 1