DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Excel to mysql

By: | 18 Feb 2009 2:55 am

Hello All,

I have a bunch of mailing list in MS Excel format. I want to upload them into my MySQL database. What is the best way to do this? I`ve
seen converter software, has anyone used any before and are any of them free?

Thanks in advance for your assistance,

Comments

Save them in text format in Excel. They will be tab-delimited files. From there you have a much better chance of importing them into MySQL tables you have defined. Look at the MySQL command LOAD DATA INTO and note the properties such as SEPARATED BY and so on.

By: | 18 Feb 2009

If you have phpmyadmin then you can save then as CSV (Coma Separated Values)
and the directly import them to an existing table with phpmyadmin.

Do a test one first with an unused table.

By: | 18 Feb 2009

Hi

I prefer to save the file in CSV format and read the file with PHP
(fopen, fclose, etc).
Then, format the read data and insert into your database according
your objective.

thanks.

By: | 18 Feb 2009

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move