If I say:
select max(length(Name)) from my_table
I get the result as 18, but I want the concerned data also. So if I say:
s
Use CHAR_LENGTH() instead-of LENGTH() as suggested in: MySQL - length() vs char_length()
SELECT name, CHAR_LENGTH(name) AS mlen FROM mytable ORDER BY mlen DESC LIMIT 1