mysql - Finding field with longest length in a column -
how find field longest length of specific column in mysql table?
mysql has lot of string functions can use:
select length(col) my_len my_table order my_len desc limit 1
more funky version (it works):
select max(length(col)) my_table
Comments
Post a Comment