faqts : Computers : Databases : MySQL : Common Problems : Converting Databases

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 11 people (73%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How do I convert a file made in excel into a database?

Mar 15th, 2004 11:32
Matt Chatterley, Gloria Torres,


Only a brief answer, given the possiblities.
One of the easiest ways is to export the file from Excel as a CSV (comma
separated value) file, which can then be programatically parsed.
You could create a short PHP script (although any language could be used
for the task), which explodes the values out into an array, assigning a
column name to each index (i.e. 0 = columnA, 1 = columnB) and then
builds and executes a series of queries against the database to insert
the data.