I am a mysql novice and have been handed task of creating a table in mysql - we don't know the column name or the data type or the length of the data type. We get data, xml, files from various reporting engines and want to load it into this table
I was told that I could make all columns to be varchar(512)
and utf-8
and that the performance of any search wont be affected.
The # of columns can be from 10-200 and even if i had a UI to allow someone to actually set the right data type and length, i feel that it would be very hard for someone to actually configure 200 columns to the right data type and length
As i don't have much data to load I cannot confirm my managers suggestion of varchar(512)
and utf 8
, as some fields contain only name and description so my issue is in that case it is a waste of space to decalre it as varchar(512)
when varchar(32)
or something like that could work
Is there an efficient way around this on mysql 5.5+