I’m looking for a clever way to extract 500 plus lines of data from an excel spreadsheet and enter is into my database.
The spreadsheet is like this
My table ‘tbl_foot_teams’ is set out as
id | name | rating
Quite simply, I need to enter get the two columns from the spreadsheet into the database fields name and rating.
Is there any efficient way to achieve this?
Individually, it will take me a ridiculous amount of time!
Thanks
Save Excel file as CSV and use LOAD DATA INFILE command to import data.
Your excel file has no
idfield. Makeidfield in the table as AUTO_INCREMENT, and use command like this –Also, have a look at GUI Data Import tool (Excel or CSV format) in dbForge Studio for MySQL.