Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to import from MS excel into MYSQL DB [duplicate]

Tags:

mysql

excel

How do I import data from MS excel and insert in to MYSQL database ? Which language is easiest and fastest to do this task ?

like image 516
Vidya Avatar asked Dec 17 '22 05:12

Vidya


2 Answers

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; 
like image 140
joeslice Avatar answered Jan 04 '23 21:01

joeslice


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

like image 27
Jeff Fritz Avatar answered Jan 04 '23 21:01

Jeff Fritz