MySQL查询字符串长度最长的记录

select 
`字段`, length(`字段`) 
from 表名 
where 
length(`字段`) = ( select max(length(`字段`)) from 表名  )
http://stackoverflow.com/questions/2357620/maxlengthfield-in-mysql

原文地址:https://www.cnblogs.com/azhqiang/p/7879501.html