I need to create a MySQL table that has over 300 columns. I have an excel file that has each field name in the first row and the field length in the second row. All datatypes are VARCHAR. Is there a way or tool available that will take this file and create a MySQL table with the specified field lengths?
I tried MySQL for Excel but I would still have to manually define each field's length which is tedious. All other methods I have researched seem to require the same thing. If I can't find something, obviously I will have to create this table by hand, but I figured I would ask before investing that much time.
Here is an example of what the first few columns look like:
field1 field2 field3 field4
4 2 255 8
There is no data to import yet. I just need to create the table for now.
Thanks!