Solved

Convert an Excel Spreadsheet into a Mysql table

Posted on 2008-10-23
1
417 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now