I am trying to optimize my database. In order to do so, I need to be able to determine the longest data entry in a varchar column, and then trim the column definition to just a
If you want to know the max length of the field output, for example, you can use this query:
output
SELECT Max(CHAR_LENGTH(`output`)) AS Max FROM `poller_output`