Automatically build mySql table upon a CSV file upload.
I have a admin section where admin can upload CSV files with different column count and different column name.
which it should then build a mySql table in the db which will read the first line and create the columns and then import the data accordingly.
I am aware of a similar issue, but this is different because of the following specs.
- The name of the Table should be the name of the file (minus the extension [.csv])
- each csv file can be diffrent
- Should build a table with number of columns and names from the CSV file
- add the the data from the second line and on
Here is a design sketch
Maybe there are known frameworks that makes this easy. Thanks.