I have an Excel spreadsheet with data I would like to use to populate a variety of tables in MySql. To ensure that business logic is adhered to, I have developed a series of stored procedures. Each row can call one or more of these procedures – depending on the contents.
I have thought of two possible solutions – Either
a) Write a PHP script to do it;
or
b) Write an Excel Macro to do it.
It must be noted that the data is still in the stage of possibly being edited before going live.
So my question is, what is the best solution? Any possible advantages/disadvantages with either one? Any possible pitfalls? Are there any other possible solutions?
Go with PHP if you populate the DB with data from Excel. I recommend http://phpexcel.codeplex.com/ for data manipulation.