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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -