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
I suppose you could use a solution such as this one :
select name, length(name) from users where id = ( select id from users order by length(name) desc limit 1 );
Might not be the optimal solution, though... But seems to work.