Solved

Convert an Excel Spreadsheet into a Mysql table

Posted on 2008-10-23
1
434 Views
Last Modified: 2012-05-05
Hi, can anyone give me any advice on a way to do this. Ive got an old excel spreadsheet with 500 records in it that id like to put into an 'assets' table in a mysql database. I've had a look on the net and can find straight forward 1:1 conversions but the problem is the number of columns has halfed in the new database so i could like to map the data in the excel spreadsheet into the columns in the database and want to ignore the data in the excel  columns we dont need anymore

can anyone help?

thanks
0
Comment
Question by:Jonesey007
1 Comment
 
LVL 4

Accepted Solution

by:
ScannyR earned 500 total points
ID: 22785844
The easiest way would probably be to save the excel file as a csv file and that can then be imported into MySQL. You will have to make sure the structure and order of the csv file matches the database table though so I would suggest first saving a copy of the spreadsheet, then deleting surplus columns and adjusting the order of remaining columns. You can then save this trimmed down version as a CSV file and import it into MySQL.

Rich
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question