mysql查询某一列的数据最大字节

语法:
select 列名, length(列名) 
from 表名
where 
length(列名) = ( select max(length(列名)) from 表名);

实例:
select project_num, length(project_num) 
from project_infor_table 
where 
length(project_num) = ( select max(length(project_num)) from project_infor_table);

posted @ 2019-08-23 09:55 一切简单化 阅读(...) 评论(...) 编辑 收藏